Linux
libceph: reject zero bucket types in crush_decode
In the Linux kernel, the following vulnerability has been resolved: libceph: reject zero bucket types in crush_decode CRUSH bucket type 0 is reserved for devices. The mapper relies on that invariant and uses type 0 to identify leaf devices. If crush_decode() accepts a bucket with type 0, a malformed CRUSH map can make the mapper treat a negative bucket ID as a device and pass it to is_out(), which then indexes the OSD weight array with a negative value. Reject zero bucket types while decoding the CRUSH map so the invalid state never reaches the mapper.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < 952ca5dc99913d169263f59fd689f586729a13c1
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < 146461f09565afe3665e65b0423d3d6b0fe806c5
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < 80fc40e11cda1b5d990a3f69c6efa344fb5cd987
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < b8a9fb6bf806f9c4891e71ae1beab0c07c23a877
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < 826cd1de5802fd392922785f9b64d76e65d2a100
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < 3b2f1937f5fce8b7dd5432e7693e3cc8b5eece56
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < 70998f91030ee083ecb336a1dff0701c20a38081
- >= f24e9980eb860d8600cbe5ef3d2fd9295320d229, < 05f90284223381005d6bcddab3fda4a97f9c3401
Fixed in 952ca5dc99913d169263f59fd689f586729a13c1, 146461f09565afe3665e65b0423d3d6b0fe806c5, 80fc40e11cda1b5d990a3f69c6efa344fb5cd987, b8a9fb6bf806f9c4891e71ae1beab0c07c23a877, 826cd1de5802fd392922785f9b64d76e65d2a100, 3b2f1937f5fce8b7dd5432e7693e3cc8b5eece56, 70998f91030ee083ecb336a1dff0701c20a38081, 05f90284223381005d6bcddab3fda4a97f9c3401
- 2.6.34
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 952ca5dc99913d169263f59fd689f586729a13c1 or 146461f09565afe3665e65b0423d3d6b0fe806c5 or 80fc40e11cda1b5d990a3f69c6efa344fb5cd987 or b8a9fb6bf806f9c4891e71ae1beab0c07c23a877 or 826cd1de5802fd392922785f9b64d76e65d2a100 or 3b2f1937f5fce8b7dd5432e7693e3cc8b5eece56 or 70998f91030ee083ecb336a1dff0701c20a38081 or 05f90284223381005d6bcddab3fda4a97f9c3401 or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.