CVE-2026-99307

ceph: require the dentry lease record to cover struct ceph_mds_reply_lease

Published Nov 16, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ceph: require the dentry lease record to cover struct ceph_mds_reply_lease

parse_reply_info_lease() reads a 32-bit struct_len off the wire and only
checks that many bytes are present, without requiring struct_len to cover
sizeof(struct ceph_mds_reply_lease) (10 bytes). A malicious MDS can
declare a shorter record and still get the pointer published: the
following *p += sizeof(**lease) overshoot is undone by *p = lend, so
nothing downstream rejects the reply. ceph_fill_trace() ->
update_dentry_lease() then reads 10 bytes through that pointer on any
lookup on a mounted CephFS, running past the end of the message front.

Require the record to cover the structure, matching the sibling
parse_reply_info_dir(). A conforming MDS always encodes the full 10
bytes.

BUG: KASAN: slab-out-of-bounds in __update_dentry_lease.constprop.0 (fs/ceph/inode.c:1459)
Read of size 4 at addr ffff888026c63d65 by task kworker/0:3/2366
Workqueue: ceph-msgr ceph_con_workfn
Call Trace:
__update_dentry_lease.constprop.0 (fs/ceph/inode.c:1459)
ceph_fill_trace (fs/ceph/inode.c:1474 fs/ceph/inode.c:1823)
mds_dispatch (fs/ceph/mds_client.c:4229 fs/ceph/mds_client.c:7225)
ceph_con_process_message (net/ceph/messenger.c:1424)
ceph_con_v1_try_read (net/ceph/messenger_v1.c:1430)
ceph_con_workfn (net/ceph/messenger.c:1576)
process_one_work (kernel/workqueue.c:3396)
worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)
kthread (kernel/kthread.c:436)
ret_from_fork (arch/x86/kernel/process.c:158)
ret_from_fork_asm (arch/x86/entry/entry_64.S:245)

The buggy address is located 357 bytes inside of
allocated 360-byte region [ffff888026c63c00, ffff888026c63d68)

Analysis

AI-generated

Technical impact

The Linux kernel CephFS code contains a bug in parse_reply_info_lease(). It reads a 32‑bit length field from the network, but fails to check that the length covers the full 10‑byte ceph_mds_reply_lease structure. An attacker who controls a Ceph MDS can send a record whose length field is smaller than 10, causing the kernel to compute a pointer that points past the end of the actual data. Subsequent read of 10 bytes from that pointer results in an out‑of‑bounds read, which is caught by KASAN as a slab‑out‑of‑bounds error. The effect is a kernel memory disclosure or a crash, providing an attacker with a local kernel exploit vector if the attacker also has control of the client node or can supply the crafted message to a mounted CephFS.

Affected Systems

All Linux kernel builds that include the CephFS driver and have not yet applied the fix commit. The issue exists regardless of vendor because it is a core kernel component, so any Linux distribution running a kernel that predates the patch is vulnerable. The vulnerability is exploitable on systems with CephFS mounts accessed via a potentially malicious Ceph MDS node.

Risk and Exploitability

The exploit requires an attacker to control or infiltrate a Ceph MDS so that the malicious reply is sent to the client. No public exploitation or KEV listing is available, and EPSS data is missing, so the exact likelihood is unclear. However, because the bug leads to an out‑of‑bounds read and could cause a denial‑of‑service or information disclosure, the risk is considered moderate to high for environments that use CephFS in a setting where the MDS cannot be fully trusted. The lack of a CVSS score makes it difficult to quantify severity, but the kernel crash potential warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that enforces the struct_len to cover the full ceph_mds_reply_lease structure (commit 058e1c38722a6d5b0181f38fdec03d5da95c3ad1 or later).
  • Reboot the system or reload the kernel after the patch is applied to ensure the new code is in effect.
  • Verify that all Ceph MDS nodes are legitimate and have not been tampered with; restrict access to CephMDS processes to trusted users and networks.

Generated by OpenCVE AI on November 16, 2026 at 11:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ceph: require the dentry lease record to cover struct ceph_mds_reply_lease parse_reply_info_lease() reads a 32-bit struct_len off the wire and only checks that many bytes are present, without requiring struct_len to cover sizeof(struct ceph_mds_reply_lease) (10 bytes). A malicious MDS can declare a shorter record and still get the pointer published: the following *p += sizeof(**lease) overshoot is undone by *p = lend, so nothing downstream rejects the reply. ceph_fill_trace() -> update_dentry_lease() then reads 10 bytes through that pointer on any lookup on a mounted CephFS, running past the end of the message front. Require the record to cover the structure, matching the sibling parse_reply_info_dir(). A conforming MDS always encodes the full 10 bytes. BUG: KASAN: slab-out-of-bounds in __update_dentry_lease.constprop.0 (fs/ceph/inode.c:1459) Read of size 4 at addr ffff888026c63d65 by task kworker/0:3/2366 Workqueue: ceph-msgr ceph_con_workfn Call Trace: __update_dentry_lease.constprop.0 (fs/ceph/inode.c:1459) ceph_fill_trace (fs/ceph/inode.c:1474 fs/ceph/inode.c:1823) mds_dispatch (fs/ceph/mds_client.c:4229 fs/ceph/mds_client.c:7225) ceph_con_process_message (net/ceph/messenger.c:1424) ceph_con_v1_try_read (net/ceph/messenger_v1.c:1430) ceph_con_workfn (net/ceph/messenger.c:1576) process_one_work (kernel/workqueue.c:3396) worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) The buggy address is located 357 bytes inside of allocated 360-byte region [ffff888026c63c00, ffff888026c63d68)
Title ceph: require the dentry lease record to cover struct ceph_mds_reply_lease
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 16, 2026, 9:59 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 16, 2026, 10:17 AM
Modified
Nov 16, 2026, 10:17 AM