{"id":"CVE-2026-99899","aliases":["CVE-2026-99899"],"related":[],"kind":"vulnerability","state":"published","title":"libceph: reject an initial monmap with no monitors","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: reject an initial monmap with no monitors\n\nbuild_initial_monmap() takes the monitor count straight from\nceph_options::num_mon and builds a monmap with that many entries without\nchecking that there is at least one. ceph_parse_ips() writes *count only\nafter it has parsed an address successfully, so a ceph_options that went\nthrough a failed parse still has num_mon == 0 and the resulting monmap\nhas no monitors in it at all.\n\nThe first thing the client does with that monmap is open a session, and\npick_new_mon() asserts the invariant that it is non-empty:\n\n  kernel BUG at net/ceph/mon_client.c:211!\n  RIP: 0010:pick_new_mon net/ceph/mon_client.c:211 [inline]\n  RIP: 0010:__open_session+0x60f/0x740 net/ceph/mon_client.c:245\n  Call Trace:\n   ceph_monc_open_session+0x46/0x60 net/ceph/mon_client.c:534\n   __ceph_open_session+0x135/0x590 net/ceph/ceph_common.c:798\n   ceph_real_mount fs/ceph/super.c:1173 [inline]\n   ceph_get_tree+0xd98/0x1fd0 fs/ceph/super.c:1362\n   vfs_get_tree+0x92/0x320 fs/super.c:1947\n   vfs_cmd_create+0xd7/0x2a0 fs/fsopen.c:231\n   __do_sys_fsconfig+0x55a/0xcb0 fs/fsopen.c:463\n\nThe reproducer gets there through the new device syntax: an fsconfig()\nmon_addr= that does not resolve (\"libceph: resolve '127.0.0.' (ret=-3):\nfailed\") leaves fsopt->mon_addr set but num_mon at 0, so the \"No monitor\naddress\" check in ceph_get_tree() passes and the mount proceeds with an\nempty monmap. The next patch stops that string from being kept, but the\nassertion should not be reachable from a mount option in the first place.\n\nCommit 40480eee361e (\"libceph: Reject monmaps advertising zero monitors\")\nmade the same BUG_ON() unreachable from the wire by rejecting\nnum_mon == 0 in ceph_monmap_decode(). Apply the same rule to the initial\nmonmap, which is the only other way one gets built, and fail the mount\nwith -EINVAL rather than assert afterwards.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: reject an initial monmap with no monitors\n\nbuild_initial_monmap() takes the monitor count straight from\nceph_options::num_mon and builds a monmap with that many entries without\nchecking that there is at least one. ceph_parse_ips() writes *count only\nafter it has parsed an address successfully, so a ceph_options that went\nthrough a failed parse still has num_mon == 0 and the resulting monmap\nhas no monitors in it at all.\n\nThe first thing the client does with that monmap is open a session, and\npick_new_mon() asserts the invariant that it is non-empty:\n\n  kernel BUG at net/ceph/mon_client.c:211!\n  RIP: 0010:pick_new_mon net/ceph/mon_client.c:211 [inline]\n  RIP: 0010:__open_session+0x60f/0x740 net/ceph/mon_client.c:245\n  Call Trace:\n   ceph_monc_open_session+0x46/0x60 net/ceph/mon_client.c:534\n   __ceph_open_session+0x135/0x590 net/ceph/ceph_common.c:798\n   ceph_real_mount fs/ceph/super.c:1173 [inline]\n   ceph_get_tree+0xd98/0x1fd0 fs/ceph/super.c:1362\n   vfs_get_tree+0x92/0x320 fs/super.c:1947\n   vfs_cmd_create+0xd7/0x2a0 fs/fsopen.c:231\n   __do_sys_fsconfig+0x55a/0xcb0 fs/fsopen.c:463\n\nThe reproducer gets there through the new device syntax: an fsconfig()\nmon_addr= that does not resolve (\"libceph: resolve '127.0.0.' (ret=-3):\nfailed\") leaves fsopt->mon_addr set but num_mon at 0, so the \"No monitor\naddress\" check in ceph_get_tree() passes and the mount proceeds with an\nempty monmap. The next patch stops that string from being kept, but the\nassertion should not be reachable from a mount option in the first place.\n\nCommit 40480eee361e (\"libceph: Reject monmaps advertising zero monitors\")\nmade the same BUG_ON() unreachable from the wire by rejecting\nnum_mon == 0 in ceph_monmap_decode(). Apply the same rule to the initial\nmonmap, which is the only other way one gets built, and fail the mount\nwith -EINVAL rather than assert afterwards.","source":"cvelist"}],"published":"2026-11-30T13:18:05.796Z","modified":"2026-11-30T14:20:25.387Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","fixed":"3f8f95ba07b57deebd7d5f881210ed166c3d9e94","status":"affected"},{"type":"git","introduced":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","fixed":"8edc65bd79aeb027acf77306bd971c28570201ce","status":"affected"},{"type":"git","introduced":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","fixed":"b585bb63aaa24a302dc7095263d6853ca1953f21","status":"affected"},{"type":"git","introduced":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","fixed":"de314d21f7adb39bd2de38c2f7145375201ca180","status":"affected"},{"type":"git","introduced":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","fixed":"0c0dfc2b238cb6eb24f68406c8655a6a71e877ad","status":"affected"},{"type":"git","introduced":"7b19b4db5add8d9f50e854907a82a10ba4d27c42","fixed":"94dbce2ae4fdb57bdb53ffa3456da777a5cfb981","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3f8f95ba07b57deebd7d5f881210ed166c3d9e94","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8edc65bd79aeb027acf77306bd971c28570201ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b585bb63aaa24a302dc7095263d6853ca1953f21","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de314d21f7adb39bd2de38c2f7145375201ca180","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c0dfc2b238cb6eb24f68406c8655a6a71e877ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94dbce2ae4fdb57bdb53ffa3456da777a5cfb981","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99899","url":"https://www.cve.org/CVERecord?id=CVE-2026-99899","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:05.796Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99899","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99899","licence":"Public domain","modified":"2026-11-30T14:20:25.387Z"}],"updatedAt":"2026-11-30T14:33:17.261Z","epss":{"score":0.00181,"percentile":0.08009,"date":"2026-12-01T12:00:22.000Z"}}