Vulnerability record
libceph: reject an initial monmap with no monitors
In the Linux kernel, the following vulnerability has been resolved:
libceph: reject an initial monmap with no monitors
build_initial_monmap() takes the monitor count straight from ceph_options::num_mon and builds a monmap with that many entries without checking that there is at least one. ceph_parse_ips() writes *count only after it has parsed an address successfully, so a ceph_options that went through a failed parse still has num_mon == 0 and the resulting monmap has no monitors in it at all.
The first thing the client does with that monmap is open a session, and pick_new_mon() asserts…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources