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.
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.
| Attack Vector |
Network |
Scope |
Unchanged |
| Attack Complexity |
Low |
Confidentiality Impact |
High |
| Privileges Required |
None |
Integrity Impact |
None |
| User Interaction |
None |
Availability Impact |
High |
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.
CVSS 3.1