CVE-2026-99895
published critical CVSS 3.1 · 9.1libceph: fix out-of-bounds reads from repeated CRUSH bucket entries
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < b0aaa76def75180f640a734759ea896259750ded · c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 4fde92e1589dfb637e242f6ad70f905975ce7504 · c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 5ed5fa697e0e5b4731f5307157ecd0b01de4fd56 · c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 6e1de78661794fc9f546766696faeee99285a079 · c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 367803db119e3f1aadb59869c43dbb2002d206c6 · c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < e1cf4b41bfbe86f06f272e4c9e87e383d62014fa · c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 3ac5e7f512efbadfffd2d13888dc23c43754a5dd · c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 569a9bb1e5615c2b88b8d76f03a4ab82e65a673e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.13 (affected) · 0 to < 4.13 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: libceph: fix out-of-bounds reads from repeated CRUSH bucket entries decode_choose_arg() assumes that its destination is zero-initialized. Although decode_choose_args() zeroes the argument array, it does not reject a repeated bucket_index and can decode into an already populated entry. Repeating a bucket with weight_set_size=0 preserves its existing weight_set pointer but clears the count. Placement then reads weight_set[-1].weights and dereferences the resulting pointer. A malformed monitor OSDMap triggers this during RBD placement: BUG: KASAN: slab-out-of-bounds in crush_bucket_choose+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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:N - The repeated bucket_index with weight_set_size=0 is carried inside the CRUSH map of a CEPH_MSG_OSD_MAP message, sent over the client's TCP messenger connection by a monitor or OSD. The path is mon_dispatch()/osd_dispatch() -> ceph_osdc_handle_map() -> handle_one_map() -> crush_decode() -> decode_choose_args() -> decode_choose_arg(). AC:L - The sender writes the whole map: a straw2 bucket on the rule path and a choose_args entry at index -1, which do_crush() uses for every pool. The entry lists the bucket twice, the second time with weight_set_size=0. get_choose_arg_weights() then clamps position to -1 on every calc_target(). Grooming the neighbouring slab object with its own u32 arrays is the attacker's own work, and no race is involved. PR:N - ceph_osdc_handle_map() checks only ceph_check_fsid(), which adopts the message's fsid if the client has none yet. mon dispatch passes CEPH_MSG_OSD_MAP on without checking authentication state. A malicious or compromised monitor or OSD therefore needs no account or privilege on the client host. UI:N - The map can be pushed without a request. handle_one_map() -> scan_requests() -> recalc_linger_target() -> calc_target() -> do_crush() runs for the linger request behind the always-registered RBD header watch. The read therefore fires on map receipt, with no victim I/O or other action. S:U - The out-of-bounds read and the wild-pointer dereference happen in the client kernel's own CRUSH mapper, bucket_straw2_choose(). They stay inside the kernel's security authority and cross no VM, IOMMU or sandbox boundary. C:H - bucket_straw2_choose() reads the 8-byte weight_set[-1].weights pointer from the adjacent slab object, then reads h.size u32 values through it. If the neighbour is groomed, that pointer is attacker-chosen. Because the values drive the straw2 argmax, the OSD the client contacts acts as a repeatable oracle on memory at an arbitrary address: more than a few bytes. I:N - Nothing is written. A repeated entry only overwrites arg->ids or arg->weight_set and leaks the old allocations. free_choose_arg_map() loops over weight_set_size=0, so there is no double free. The mapper returns an in-bounds bucket->h.items[high] from the attacker's own map. A:H - The leftover weight_set[-1].weights value is garbage, such as a SLUB free pointer or attacker u32 data. Dereferencing it faults in crush_bucket_choose() inside calc_target() while osdc->lock is held for write. That oopses the client, stalls all Ceph I/O and panics with panic_on_oops, and the sender can resend the map on every reconnect.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < b0aaa76def75180f640a734759ea896259750ded (affected · git)c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 4fde92e1589dfb637e242f6ad70f905975ce7504 (affected · git)c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 5ed5fa697e0e5b4731f5307157ecd0b01de4fd56 (affected · git)c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 6e1de78661794fc9f546766696faeee99285a079 (affected · git)c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 367803db119e3f1aadb59869c43dbb2002d206c6 (affected · git)c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < e1cf4b41bfbe86f06f272e4c9e87e383d62014fa (affected · git)c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 3ac5e7f512efbadfffd2d13888dc23c43754a5dd (affected · git)c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5 to < 569a9bb1e5615c2b88b8d76f03a4ab82e65a673e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.13 (affected)0 to < 4.13 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/367803db119e3f1aadb59869c43dbb2002d206c6
- https://git.kernel.org/stable/c/3ac5e7f512efbadfffd2d13888dc23c43754a5dd
- https://git.kernel.org/stable/c/4fde92e1589dfb637e242f6ad70f905975ce7504
- https://git.kernel.org/stable/c/569a9bb1e5615c2b88b8d76f03a4ab82e65a673e
- https://git.kernel.org/stable/c/5ed5fa697e0e5b4731f5307157ecd0b01de4fd56
- https://git.kernel.org/stable/c/6e1de78661794fc9f546766696faeee99285a079
- https://git.kernel.org/stable/c/b0aaa76def75180f640a734759ea896259750ded
- https://git.kernel.org/stable/c/e1cf4b41bfbe86f06f272e4c9e87e383d62014fa
Provider assertions
1Linux · cna
libceph: fix out-of-bounds reads from repeated CRUSH bucket entries
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2d825ee1c8834fdb9a6eee50ae883421451432ea7de04034b6470b40be5b3e8a
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record