---
id: "CVE-2026-99307"
page: "https://infrastack.ai/live/CVE-2026-99307"
kind: "vulnerability"
aliases: ["CVE-2026-99307"]
title: "Linux kernel CephFS client: malicious metadata server can read past buffer"
severity: "high"
cvss: null
epss: 0.00209
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["ceph", "cephfs", "kernel-client", "linux-kernel", "runtime"]
not_affected_if: ["no-cephfs-mount", "trusted-mds"]
published_at: "2026-11-16T10:17:05+00:00"
first_seen_at: "2026-11-16T10:39:27+00:00"
updated_at: "2026-11-16T18:53:18+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99307", "first_seen_at": "2026-11-16T10:39:27+00:00"}, {"source": "analyst", "url": "https://lists.openwall.net/linux-kernel/2026/09/15/257", "first_seen_at": "2026-11-16T10:40:43+00:00", "cites": ["https://lists.openwall.net/linux-kernel/2026/09/15/257"]}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-99307", "first_seen_at": "2026-11-16T18:53:18+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00209, "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-99307"}]
---

# Linux kernel CephFS client: malicious metadata server can read past buffer

Link for people: https://infrastack.ai/live/CVE-2026-99307 (this .md is for agents)

The Linux kernel's CephFS client accepts a directory lease record from the metadata server that is shorter than the structure it expects. A malicious or compromised Ceph MDS can make the client read past the end of a received message during a lookup, which the KASAN report shows as an out-of-bounds read.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether the host mounts CephFS with the kernel client: `findmnt -t ceph` or `mount -t ceph`. No ceph mount means not exposed.
- Check `uname -r`. The bug is in parse_reply_info_lease() in fs/ceph/mds_client.c. The patch's Fixes tag points to commit 4ac4c23eaa38 ("ceph: decode alternate_name in lease info"), so kernels carrying that commit are the ones to look at. Fixed stable versions are not published in the sources read: unknown. Check your distro's kernel changelog for the patch subject.

## Timeline

- 2026-11-16T10:39:27+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-99307
- 2026-11-16T10:40:43+00:00 analyst https://lists.openwall.net/linux-kernel/2026/09/15/257 — Only the patch submission (linux-kernel list, 2026-09-14, Xiang Mei, Cc stable; Fixes 4ac4c23eaa38; adds struct_len < sizeof(**lease) check) found. NVD page returned no text; no merged commit or stable version numbers found, so fix left unknown and nothing marked verified. Revisit when the commit lands in stable.
- 2026-11-16T18:53:18+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-99307

## Documents

- [describes] [PATCH] ceph: require the dentry lease record to cover struct ceph_mds_reply_lease (linux-kernel, 2026-09-14) https://lists.openwall.net/linux-kernel/2026/09/15/257

## From the sources

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)

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
