Linux
libceph: make decode_pool() more resilient against corrupted osdmaps
In the Linux kernel, the following vulnerability has been resolved: libceph: make decode_pool() more resilient against corrupted osdmaps If the osdmap is (maliciously) corrupted such that the encoded length of ceph_pg_pool envelope is less than what is expected for a particular encoding version, out-of-bounds reads may ensue because the only bounds check that is there is based on that length value. This patch adds explicit bounds checks for each field that is decoded or skipped.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4f6a7e5ee1393ec4b243b39dac9f36992d161540, < d061be4c8040ffb1110d537654a038b8b6ad39d2
- >= 4f6a7e5ee1393ec4b243b39dac9f36992d161540, < 145d140abda80e33331c5781d6603014fa75d258
- >= 4f6a7e5ee1393ec4b243b39dac9f36992d161540, < c82e39ff67353a5a6cbc07b786b8690bd2c45aaa
- >= 4f6a7e5ee1393ec4b243b39dac9f36992d161540, < e927ab132b87ba3f076705fc2684d94b24201ed1
- >= 4f6a7e5ee1393ec4b243b39dac9f36992d161540, < 5d0d8c292531fe356c4e94dcfdf7d7212aca9957
- >= 4f6a7e5ee1393ec4b243b39dac9f36992d161540, < 2acb8517429ab42146c6c0ac1daed1f03d2fd125
- >= 4f6a7e5ee1393ec4b243b39dac9f36992d161540, < 8c738512714e8c0aa18f8a10c072d5b01c83db39
Fixed in d061be4c8040ffb1110d537654a038b8b6ad39d2, 145d140abda80e33331c5781d6603014fa75d258, c82e39ff67353a5a6cbc07b786b8690bd2c45aaa, e927ab132b87ba3f076705fc2684d94b24201ed1, 5d0d8c292531fe356c4e94dcfdf7d7212aca9957, 2acb8517429ab42146c6c0ac1daed1f03d2fd125, 8c738512714e8c0aa18f8a10c072d5b01c83db39
- 3.9
Fixed in 0, 5.10.248, 5.15.198, 6.1.160, 6.6.120, 6.12.64, 6.18.3, 6.19
Mitigation
Upgrade Linux to d061be4c8040ffb1110d537654a038b8b6ad39d2 or 145d140abda80e33331c5781d6603014fa75d258 or c82e39ff67353a5a6cbc07b786b8690bd2c45aaa or e927ab132b87ba3f076705fc2684d94b24201ed1 or 5d0d8c292531fe356c4e94dcfdf7d7212aca9957 or 2acb8517429ab42146c6c0ac1daed1f03d2fd125 or 8c738512714e8c0aa18f8a10c072d5b01c83db39 or later.
Upgrade Linux to 0 or 5.10.248 or 5.15.198 or 6.1.160 or 6.6.120 or 6.12.64 or 6.18.3 or 6.19 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.