{"id":"CVE-2026-139196","summary":"ceph: don't keep a mon_addr string that failed to parse","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: don't keep a mon_addr string that failed to parse\n\nceph_parse_mon_addr() stores the string in fsopt-\u003emon_addr before handing\nit to ceph_parse_mon_ips(), and then returns that function's error. So\nafter a mon_addr= that does not parse, fsconfig() reports the failure but\nthe mount context keeps the rejected string.\n\nThat matters because ceph_get_tree() uses fsopt-\u003emon_addr as the \"monitor\naddresses were supplied\" test:\n\n\tif (fsopt-\u003enew_dev_syntax && !fsopt-\u003emon_addr)\n\t\treturn invalfc(fc, \"No monitor address\");\n\nUserspace is free to ignore the error from fsconfig(FSCONFIG_SET_STRING)\nand go straight to FSCONFIG_CMD_CREATE. The check then passes on a value\nthat was rejected, and the mount continues with ceph_options::num_mon\nstill 0 - which is how syzbot reached the BUG_ON() in pick_new_mon()\nfixed by the previous patch.\n\nParse first and commit only on success. A failed mon_addr= now leaves any\npreviously accepted value in place instead of replacing it with one that\ndoes not parse.","modified":"2026-12-01T21:02:37.098535336Z","published":"2026-11-30T13:32:28.082Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139196.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/09e91a5ef35d5fceea6732a71be39dccd0c9e3bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/38095a75a5d5c5145c15be0428bdb58bccb80c2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/599ce8dc0267ec997e4935dc2c56edafcf0f0ec4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c82bff8561f4c20dc0113f81cb2f6e6e2b4cf70"},{"type":"WEB","url":"https://git.kernel.org/stable/c/94d45bfc325a75e6727db833f712252bf759f411"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b3a3d7396a6da9ba394197447d3ac7a6d59f80f1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139196.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139196"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7b19b4db5add8d9f50e854907a82a10ba4d27c42"},{"fixed":"b3a3d7396a6da9ba394197447d3ac7a6d59f80f1"},{"fixed":"38095a75a5d5c5145c15be0428bdb58bccb80c2d"},{"fixed":"599ce8dc0267ec997e4935dc2c56edafcf0f0ec4"},{"fixed":"94d45bfc325a75e6727db833f712252bf759f411"},{"fixed":"09e91a5ef35d5fceea6732a71be39dccd0c9e3bb"},{"fixed":"6c82bff8561f4c20dc0113f81cb2f6e6e2b4cf70"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139196.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.17.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139196.json"}}],"schema_version":"1.9.2"}