{"id":"CVE-2026-139196","state":"PUBLISHED","title":"ceph: don't keep a mon_addr string that failed to parse","description":"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->mon_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->mon_addr as the \"monitor\naddresses were supplied\" test:\n\n\tif (fsopt->new_dev_syntax && !fsopt->mon_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.","publishedAt":"2026-11-30T13:32:28.082Z","updatedAt":"2026-11-30T13:32:28.082Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"b3a3d7396a6da9ba394197447d3ac7a6d59f80f1","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"38095a75a5d5c5145c15be0428bdb58bccb80c2d","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"599ce8dc0267ec997e4935dc2c56edafcf0f0ec4","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"94d45bfc325a75e6727db833f712252bf759f411","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"09e91a5ef35d5fceea6732a71be39dccd0c9e3bb","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"6c82bff8561f4c20dc0113f81cb2f6e6e2b4cf70","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/super.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139196.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139196","state":"PUBLISHED","datePublished":"2026-11-30T13:32:28.082Z","dateUpdated":"2026-11-30T13:32:28.082Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.919Z"},"containers":{"cna":{"title":"ceph: don't keep a mon_addr string that failed to parse","descriptions":[{"lang":"en","value":"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->mon_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->mon_addr as the \"monitor\naddresses were supplied\" test:\n\n\tif (fsopt->new_dev_syntax && !fsopt->mon_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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"b3a3d7396a6da9ba394197447d3ac7a6d59f80f1","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"38095a75a5d5c5145c15be0428bdb58bccb80c2d","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"599ce8dc0267ec997e4935dc2c56edafcf0f0ec4","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"94d45bfc325a75e6727db833f712252bf759f411","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"09e91a5ef35d5fceea6732a71be39dccd0c9e3bb","versionType":"git"},{"version":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","status":"affected","lessThan":"6c82bff8561f4c20dc0113f81cb2f6e6e2b4cf70","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/super.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b3a3d7396a6da9ba394197447d3ac7a6d59f80f1"},{"url":"https://git.kernel.org/stable/c/38095a75a5d5c5145c15be0428bdb58bccb80c2d"},{"url":"https://git.kernel.org/stable/c/599ce8dc0267ec997e4935dc2c56edafcf0f0ec4"},{"url":"https://git.kernel.org/stable/c/94d45bfc325a75e6727db833f712252bf759f411"},{"url":"https://git.kernel.org/stable/c/09e91a5ef35d5fceea6732a71be39dccd0c9e3bb"},{"url":"https://git.kernel.org/stable/c/6c82bff8561f4c20dc0113f81cb2f6e6e2b4cf70"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:28.082Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}