# CVE-2026-139196: ceph: don't keep a mon_addr string that failed to parse

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:28.082Z
- Modified: 2026-11-30T14:18:39.150Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ceph: don't keep a mon_addr string that failed to parse

ceph_parse_mon_addr() stores the string in fsopt->mon_addr before handing
it to ceph_parse_mon_ips(), and then returns that function's error. So
after a mon_addr= that does not parse, fsconfig() reports the failure but
the mount context keeps the rejected string.

That matters because ceph_get_tree() uses fsopt->mon_addr as the "monitor
addresses were supplied" test:

	if (fsopt->new_dev_syntax && !fsopt->mon_addr)
		return invalfc(fc, "No monitor address");

Userspace is free to ignore the error from fsconfig(FSCONFIG_SET_STRING)
and go straight to FSCONFIG_CMD_CREATE. The check then passes on a value
that was rejected, and the mount continues with ceph_options::num_mon
still 0 - which is how syzbot reached the BUG_ON() in pick_new_mon()
fixed by the previous patch.

Parse first and commit only on success. A failed mon_addr= now leaves any
previously accepted value in place instead of replacing it with one that
does not parse.

(As written by CVE List.)

## Affected

- Linux Linux: from 7b19b4db5add8d9f50e854907a82a10ba4d27c42 before b3a3d7396a6da9ba394197447d3ac7a6d59f80f1; from 7b19b4db5add8d9f50e854907a82a10ba4d27c42 before 38095a75a5d5c5145c15be0428bdb58bccb80c2d; from 7b19b4db5add8d9f50e854907a82a10ba4d27c42 before 599ce8dc0267ec997e4935dc2c56edafcf0f0ec4; from 7b19b4db5add8d9f50e854907a82a10ba4d27c42 before 94d45bfc325a75e6727db833f712252bf759f411; from 7b19b4db5add8d9f50e854907a82a10ba4d27c42 before 09e91a5ef35d5fceea6732a71be39dccd0c9e3bb; from 7b19b4db5add8d9f50e854907a82a10ba4d27c42 before 6c82bff8561f4c20dc0113f81cb2f6e6e2b4cf70; 5.17 (not affected: before 5.17; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b3a3d7396a6da9ba394197447d3ac7a6d59f80f1>
- <https://git.kernel.org/stable/c/38095a75a5d5c5145c15be0428bdb58bccb80c2d>
- <https://git.kernel.org/stable/c/599ce8dc0267ec997e4935dc2c56edafcf0f0ec4>
- <https://git.kernel.org/stable/c/94d45bfc325a75e6727db833f712252bf759f411>
- <https://git.kernel.org/stable/c/09e91a5ef35d5fceea6732a71be39dccd0c9e3bb>
- <https://git.kernel.org/stable/c/6c82bff8561f4c20dc0113f81cb2f6e6e2b4cf70>

## Sources

- CVE List: [CVE-2026-139196](https://www.cve.org/CVERecord?id=CVE-2026-139196), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139196](https://nvd.nist.gov/vuln/detail/CVE-2026-139196), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139196 · Whole record: https://cve.day/CVE-2026-139196.json · Rebuilt by cve.day 2026-11-30T14:32:52.131Z
