CVE-2026-99895: libceph: fix out-of-bounds reads from repeated CRUSH bucket entries
In the Linux kernel, the following vulnerability has been resolved:
libceph: fix out-of-bounds reads from repeated CRUSH bucket entries
decodechoosearg() assumes that its destination is zero-initialized. Although decodechooseargs() zeroes the argument array, it does not reject a repeated bucketindex and can decode into an already populated entry.
Repeating a bucket with weightsetsize=0 preserves its existing weightset pointer but clears the count. Placement then reads weightset[-1].weights and dereferences the resulting pointer.
A malformed monitor OSDMap triggers this during RBD placement:
BUG: KASAN: slab-out-of-bounds in crushbucketchoose+0xdd1/0xf90 Read of size 8 at addr ffff88800290df70 by task init/75
Reject populated arguments before decoding another entry, so the error path can free their original allocations.
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
What conditions are required to trigger the out-of-bounds read?
An attacker would need to provide a malformed monitor OSDMap containing repeated CRUSH bucket entries. The repeated bucket can use weight_set_size=0, leaving a prior weight_set pointer in place while clearing its count; RBD placement then accesses weight_set[-1].weights.
Which systems are realistically exposed?
Systems running the Linux kernel with libceph and performing RBD placement are exposed when they process a malformed monitor OSDMap. The reported failure occurs in crush_bucket_choose during RBD placement.
How can I identify a possible attempted or successful trigger?
Look for kernel BUG or KASAN reports identifying a slab-out-of-bounds read in crush_bucket_choose. The example report shows a size-8 read during RBD placement.
Is there a documented workaround if patching cannot happen immediately?
The provided information does not specify a workaround. The vulnerable input is a malformed monitor OSDMap, so limiting acceptance of untrusted or malformed monitor map data is the relevant exposure boundary described.