CVE-2026-99894
published critical CVSS 3.1 · 9.8libceph: initialize CRUSH choose argument weights
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5cf9c4a9959b6273675310d14a834ef14fbca37c to < a1af8ec987813d5157c100460528a4c4a30dc6ff · 5cf9c4a9959b6273675310d14a834ef14fbca37c to < 66cdf9dd254bc1b8be9a78fccabe578927cc512c · 5cf9c4a9959b6273675310d14a834ef14fbca37c to < b911040ef2f3e2cba55514c7cc228b24e58d2dbd · 5cf9c4a9959b6273675310d14a834ef14fbca37c to < 3de15855d5d86e42ebfb2fb5756253d4d83a9b61 · 5cf9c4a9959b6273675310d14a834ef14fbca37c to < 26205ea74ec133b4f3669823f921e54330309e55 · 5cf9c4a9959b6273675310d14a834ef14fbca37c to < 0f7e90374f3649b31efb1847736fb25ca6faa5ff · 5cf9c4a9959b6273675310d14a834ef14fbca37c to < 458e9e2930168757bb387b68cc44206b72bddbf3 · 5cf9c4a9959b6273675310d14a834ef14fbca37c to < c3a995ff0782587789333c621e1f6bd5e574371e · 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.119 through 6.12.* (unaffected · semver) · 6.18.65 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: initialize CRUSH choose argument weights Initialize the CRUSH choose argument weight-set array before decoding so entries start in a defined state while the decoder fills them.
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.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The malformed choose_args data (weight_set_size and a truncated weights array) arrives in a CEPH_MSG_OSD_MAP message over TCP from a Ceph monitor or OSD. mon_dispatch()/osd_dispatch() -> ceph_osdc_handle_map() -> ceph_osdmap_decode()/osdmap_apply_incremental() -> crush_decode() -> decode_choose_args() -> decode_choose_arg(). AC:L - The peer sets weight_set_size to N and malforms weight array k < N-1, so decode_array_32_alloc() returns -EINVAL every time. free_choose_arg_map() then kfree()s the uninitialised weight_set[k+1..N-1].weights. N picks the slab size class, and pre-filling that slot with the peer's own u32 weights arrays is the attacker's own grooming. No race. PR:N - The attacker needs no account or privilege on the client host. It only has to be, or have compromised, a mon or OSD the client talks to. ceph_check_fsid() is the only check before decoding, and a cluster peer knows the fsid. UI:N - mon_dispatch() and osd_dispatch() process an unsolicited CEPH_MSG_OSD_MAP with no subscription or client-request check. A compromised mon or OSD can push the map to already-connected CephFS/RBD clients at will, and no victim read, write or lookup is needed to trigger it. S:U - The invalid kfree() happens in the client host's own kernel slab allocator. No hypervisor, VM or IOMMU boundary is crossed. C:H - kfree() on a stale weight_set[j].weights pointer frees whatever object the leftover or attacker-sprayed value points to while it is still live. The resulting use-after-free gives read primitives into reallocated kernel heap objects. I:H - The decode error path in free_choose_arg_map() becomes an arbitrary or double free whose target can be chosen by spraying the slot with weights arrays. That allows overlapping live kernel objects and corrupting heap memory, a known route to code execution. A:H - Freeing a garbage or still-live pointer in slab_free/virt_to_folio oopses or corrupts the heap and crashes the client kernel. The peer can resend the malformed OSD map on every reconnect.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5cf9c4a9959b6273675310d14a834ef14fbca37c to < a1af8ec987813d5157c100460528a4c4a30dc6ff (affected · git)5cf9c4a9959b6273675310d14a834ef14fbca37c to < 66cdf9dd254bc1b8be9a78fccabe578927cc512c (affected · git)5cf9c4a9959b6273675310d14a834ef14fbca37c to < b911040ef2f3e2cba55514c7cc228b24e58d2dbd (affected · git)5cf9c4a9959b6273675310d14a834ef14fbca37c to < 3de15855d5d86e42ebfb2fb5756253d4d83a9b61 (affected · git)5cf9c4a9959b6273675310d14a834ef14fbca37c to < 26205ea74ec133b4f3669823f921e54330309e55 (affected · git)5cf9c4a9959b6273675310d14a834ef14fbca37c to < 0f7e90374f3649b31efb1847736fb25ca6faa5ff (affected · git)5cf9c4a9959b6273675310d14a834ef14fbca37c to < 458e9e2930168757bb387b68cc44206b72bddbf3 (affected · git)5cf9c4a9959b6273675310d14a834ef14fbca37c to < c3a995ff0782587789333c621e1f6bd5e574371e (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.119 through 6.12.* (unaffected · semver)6.18.65 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/0f7e90374f3649b31efb1847736fb25ca6faa5ff
- https://git.kernel.org/stable/c/26205ea74ec133b4f3669823f921e54330309e55
- https://git.kernel.org/stable/c/3de15855d5d86e42ebfb2fb5756253d4d83a9b61
- https://git.kernel.org/stable/c/458e9e2930168757bb387b68cc44206b72bddbf3
- https://git.kernel.org/stable/c/66cdf9dd254bc1b8be9a78fccabe578927cc512c
- https://git.kernel.org/stable/c/a1af8ec987813d5157c100460528a4c4a30dc6ff
- https://git.kernel.org/stable/c/b911040ef2f3e2cba55514c7cc228b24e58d2dbd
- https://git.kernel.org/stable/c/c3a995ff0782587789333c621e1f6bd5e574371e
Provider assertions
1Linux · cna
libceph: initialize CRUSH choose argument weights
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 44492822ef14f864598b9c51f6e6bf71efba936caa55a4ee7ed6d36dfa980b28
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record