CVE-2026-99894 PUBLISHED

libceph: initialize CRUSH choose argument weights

Assigner: Linux
Reserved: 25.09.2026 Published: 30.11.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 9.8

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to a1af8ec987813d5157c100460528a4c4a30dc6ff (excl.)
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to 66cdf9dd254bc1b8be9a78fccabe578927cc512c (excl.)
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to b911040ef2f3e2cba55514c7cc228b24e58d2dbd (excl.)
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to 3de15855d5d86e42ebfb2fb5756253d4d83a9b61 (excl.)
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to 26205ea74ec133b4f3669823f921e54330309e55 (excl.)
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to 0f7e90374f3649b31efb1847736fb25ca6faa5ff (excl.)
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to 458e9e2930168757bb387b68cc44206b72bddbf3 (excl.)
  • affected from 5cf9c4a9959b6273675310d14a834ef14fbca37c to c3a995ff0782587789333c621e1f6bd5e574371e (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.13 is affected
  • unaffected from 0 to 4.13 (excl.)
  • unaffected from 5.10.275 to 5.10.* (incl.)
  • unaffected from 5.15.226 to 5.15.* (incl.)
  • unaffected from 6.1.193 to 6.1.* (incl.)
  • unaffected from 6.6.163 to 6.6.* (incl.)
  • unaffected from 6.12.119 to 6.12.* (incl.)
  • unaffected from 6.18.65 to 6.18.* (incl.)
  • unaffected from 7.3.4 to 7.3.* (incl.)
  • unaffected from 7.4-rc1 to * (incl.)

References