CVE-2026-99900: libceph: reject mismatched CRUSH weight-set sizes
In the Linux kernel, the following vulnerability has been resolved:
libceph: reject mismatched CRUSH weight-set sizes
A CEPHMSGOSDMAP message can contain CRUSH choose args with replacement weight vectors for straw2 buckets. decodechooseargs() validates the optional IDs vector against the referenced bucket, but does not validate the size of any replacement-weight vector.
The CRUSH mapper assumes that each replacement vector has exactly as many entries as the bucket. A zero-length vector for a nonempty bucket makes bucketstraw2choose() dereference NULL, while a shorter nonzero vector causes an out-of-bounds read. An authenticated monitor or OSD can deliver such a map and crash a kernel client when it performs placement for an ordinary request.
Reject a nonempty collection of weight sets for an absent bucket and require every replacement-weight vector to match its bucket size.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Linux kernel clients that process CEPH_MSG_OSD_MAP messages and perform Ceph placement for ordinary requests are exposed. Exploitation requires CRUSH choose arguments containing malformed replacement-weight vectors for straw2 buckets.
What level of access does an attacker need?
An attacker must be able to act as an authenticated Ceph monitor or OSD, or otherwise deliver a crafted OSD map from one of those authenticated roles. The malformed map can crash a kernel client when it performs placement.
What happens if a client receives a malformed weight vector?
A zero-length replacement-weight vector for a nonempty bucket can cause a NULL dereference in bucket_straw2_choose(). A nonzero vector shorter than its bucket can cause an out-of-bounds read.
What does the fix validate?
The fix rejects nonempty collections of weight sets that reference an absent bucket. It also requires every replacement-weight vector to have exactly the same number of entries as its referenced bucket.