CVE-2026-99891 PUBLISHED

ceph: bound name skips in ceph_mdsmap_decode() by the message end

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

In the Linux kernel, the following vulnerability has been resolved:

ceph: bound name skips in ceph_mdsmap_decode() by the message end

ceph_mdsmap_decode() reads two remote u32 name lengths and advances its parser cursor without checking that either string remains in the message. On a 32-bit client, a sufficiently large length can wrap the cursor below end. The following numerical bounds check then succeeds and dereferences the wrapped address.

Use ceph_decode_skip_n() for both names so the remaining bytes are checked before the cursor advances.

The issue produced a page fault in ceph_mdsmap_decode twice on the tested i386 baseline. The same frame was rejected without a fault twice after this change, while a normal MDSMap continued to be accepted.

Metrics

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

AV:N - The two bad lengths are mds-name u32s inside a CEPH_MSG_MDS_MAP message, sent over the Ceph messenger TCP session by a monitor (mon_dispatch → extra_mon_dispatch) or an MDS (mds_dispatch). The message goes to ceph_mdsc_handle_mdsmap() → ceph_mdsmap_decode(), and the bare *p += namelen comes straight from those network bytes. AC:L - The peer picks namelen, so on an affected 32-bit client it chooses exactly where the wrapped cursor lands; ceph_has_room() accepts any address below end, and a wrap into user space or unmapped memory faults every time. No race or victim-controlled layout is involved, and setting info_v>=4 makes the cursor reset to info_end so the map decodes and is installed. PR:N - The attacker acts as the Ceph monitor or MDS peer, or sits on-path on the default msgr1 mon session, which is unsigned because mon_con_ops has no check_message_signature. The only gate is ceph_check_fsid() plus a newer epoch, and an on-path attacker can read the fsid off the wire. No account or privilege on the client host is needed. UI:N - Once CephFS is mounted, the client keeps a continuous CEPH_SUB_MDSMAP subscription, and an unsolicited MDS_MAP with a higher epoch is decoded in the ceph-msgr worker straight away. No file access, mount or other victim action is needed when the attack happens. S:U - The wild read and the oops both happen inside the client kernel's CephFS decoder and stay within the same kernel security authority; no VM, IOMMU or sandbox boundary is crossed. C:H - The wrapped cursor reads mds/inc/state/addr/laggy_since and export_targets from kernel memory at an offset the attacker picks, anywhere below the message end. That is not a few bounded bytes. With info_v>=4 those values are installed in mdsc->mdsmap and acted on through check_new_map() and ceph_mdsmap_get_addr(), as with the sibling out-of-bounds read CVE-2026-89650. I:N - Every access through the wrapped cursor is a read into locals (addr, laggy_since) or into the correctly sized kcalloc'd export_targets array, and each target is still checked against CEPH_MAX_MDS. No out-of-bounds write or control-flow primitive comes from this fix's two skips. A:H - A namelen that wraps the cursor into user space or unmapped memory makes ceph_mdsmap_decode() page-fault in the kworker while it holds mdsc->mutex; the fix commit reproduced this on i386. A rejected map also calls ceph_umount_begin(), and the peer can repeat either at will with new maps.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to 635d69abc3efdf6bd92eefe3824842b5626a6242 (excl.)
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to 85105987f7eea0f68e6573d7b3048ee38de6c455 (excl.)
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to b7abd15f5041ab821b823764f3b9bb8a75a3ecf7 (excl.)
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to 44abd92f5f8792b3e21a2bdc8197162c42b2857f (excl.)
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to 59779874bf7618798e083b5adcc8b96082a9c294 (excl.)
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to ff6e8ae28b522586507f7de81230b471a4d9c633 (excl.)
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to bd04d73a0d6e6c52186f3836ad1689080be7f7ed (excl.)
  • affected from 2f2dc053404febedc9c273452d9d518fb31fde72 to 7f702e1703c9648fcb02a217d66c880d00417150 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.34 is affected
  • unaffected from 0 to 2.6.34 (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.117 to 6.12.* (incl.)
  • unaffected from 6.18.63 to 6.18.* (incl.)
  • unaffected from 7.3.4 to 7.3.* (incl.)
  • unaffected from 7.4-rc1 to * (incl.)

References