CVE-2026-89648
moderateLinux kernel CephFS client DoS via unbounded delegated-inode reply from MDS
The Linux kernel's CephFS client contains a denial-of-service flaw in ceph_parse_deleg_inos(), the function that decodes delegated inode number intervals from an MDS create-with-delegation reply. The 64-bit interval length field is fully attacker-controlled and was not validated, so a malicious or compromised Ceph MDS server can make a client spin through a huge interval, send many or duplicate intervals, or repeatedly send replies that accumulate delegated inodes on one session, driving unbounded CPU consumption and unlimited growth of the session's delegated-inode xarray. The impact is availability only (no confidentiality or integrity impact), affecting any host that mounts CephFS using the in-kernel client. The fix bounds both the per-session delegated-inode count and the aggregate interval length accepted per reply, while leaving legitimate delegation refills unaffected. No public proof of concept is known and the issue is not listed in CISA's KEV, so exploitation in the wild is not known.
What to do: Patch hosts running the kernel CephFS client to a kernel containing the fix that caps delegated inodes via CEPH_MAX_DELEG_INOS in ceph_parse_deleg_inos(); most distributions ship this via stable kernel updates. Where patching is delayed, prefer mounting CephFS with the userspace ceph-fuse client (unaffected by this kernel code path) and harden and monitor MDS nodes, since triggering the flaw requires a malicious or compromised metadata server. Watch for unexplained sustained CPU spin or steady kernel memory growth on CephFS-mounting hosts as indicators of a malformed delegation stream.
| Linux (kernel.org) Linux kernel CephFS client (fs/ceph, MDS client delegation handling) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
In the Linux kernel, the following vulnerability has been resolved: ceph: cap delegated inode count in ceph_parse_deleg_inos() ceph_parse_deleg_inos() decodes interval sets of delegated inode numbers from an MDS create-with-delegation reply. For each set it reads a 64-bit start and a 64-bit len with ceph_decode_64_safe(), which only validates that the eight bytes are present in the message, not the value, and then loops over len while inserting entries into s_delegated_inos. len is fully attacker controlled. A malicious or compromised MDS can send one huge interval, many intervals in one reply, duplicate intervals, or repeated replies that accumulate delegated inodes on the same session. The original code bounded none of these and could spin the insert loop or grow the xarray without limit. Bound both dimensions with a single enforcement point. Track the number of delegated inodes held by each MDS session in an atomic counter and grow it only in ceph_insert_deleg_ino(), which uses atomic_add_unless() to refuse to push the count past CEPH_MAX_DELEG_INOS. Because that helper is the only place the counter grows, the per-session population can never exceed the cap, so no separate per-session pre-check is needed. The counter is decremented when async create consumes a delegated inode or when an insert fails, incremented when a delegated inode is restored, initialized with the session xarray, and reset when reconnect destroys the xarray. A per-session cap alone still lets one reply spin the insert loop on duplicate ranges without growing the counter, so also cap the aggregate interval length accepted from a single reply. Together these bound both the loop trip count per reply and the xarray population across replies. The cap is a fixed, client-chosen constant rather than a value derived from the MDS. mds_client_prealloc_inos is a userspace MDS configuration option; it is never sent to the kernel client on the wire, and a server-supplied bound could not be trusted for a defensive limit in any case. The constant is set well above that option's documented default of 1000 (a generous multiple), so legitimate refill behavior is unaffected while the CPU and xarray memory a malformed delegation stream can consume stays bounded. Impact: a malicious or compromised Ceph MDS can no longer make a client spin through an unbounded delegated-inode interval or grow one session's delegated-inode xarray without limit.
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
In the news0 stories
No ingested article mentions this CVE yet.