CVE-2026-99557
ceph: fail readdir when the MDS reply carries no dirfrag
Check your servers for CVE-2026-99557
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99557 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ceph: fail readdir when the MDS reply carries no dirfrag
A ceph mount oopses in ceph_readdir() when the MDS answers a READDIR request with a reply whose extra blob is empty. parse_reply_info() skips reply blobs whose length is zero, so parse_reply_info_readdir() never runs, r_reply_info.dir_dir stays NULL, and the reply still parses as successful. ceph_mdsc_do_request() returns 0 and ceph_readdir() then reads rinfo->dir_dir->frag with no NULL check:
/* extra */ ceph_decode_32_safe(&p, end, len, bad); if (len > 0) { ... err = parse_reply_info_extra(&p, p + len, req, features, s); ... }
The oops on v7.3.0-rc4-00537-ga3ff15db6820, one getdents64(2) on the mount root after an ms_mode=legacy mount, trimmed:
BUG: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 266 Comm: ls Tainted: G N 7.3.0-rc4-00537-ga3ff15db6820 #1 PREEMPT(lazy) RIP: 0010:ceph_readdir+0xbff/0x3ea0 Call Trace: <TASK> ? __pfx_ceph_readdir+0x10/0x10 wrap_directory_iterator+0xa2/0xe0 iterate_dir+0x1da/0x5d0 __x64_sys_getdents64+0x13b/0x2a0 do_syscall_64+0xdd/0x4a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK>
The unconditional frag read came in with 81c6aea5275ea ("ceph: handle frag mismatch between readdir request and reply"), so the bug is old.
Treat a reply with no dirfrag as a protocol violation: warn once, drop the request and return -EIO, the same way ceph_readdir() already handles the two malformed-reply cases later in the function.
Tested on v7.3.0-rc4-00537-ga3ff15db6820 (KASAN). Unpatched, the getdents64(2) above takes the machine down (oops=panic) on the first READDIR reply. With the patch it warns once and getdents64(2) returns -EIO, no oops, no hang. A conformant reply for an empty directory — dirfrag present, zero entries, FRAG_END|FRAG_COMPLETE — still lists "." and ".." and returns EOF on both kernels, so normal readdir behavior is unchanged. The oops is still present in v7.3-rc5 (72d3fcf802c45).
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.23% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 81c6aea5275eae453719d7f3924da07e668265c5, before 500d7e85af3116803d2cdae9f3a8319e782b84e2 affected from 81c6aea5275eae453719d7f3924da07e668265c5, before ba0a9ccfd717a603ac10520f723cf4a4881e61b6 affected from 81c6aea5275eae453719d7f3924da07e668265c5, before 12646a00f8549c9f17e5213c30bd608e81fee8f9 affected from 81c6aea5275eae453719d7f3924da07e668265c5, before 4ec54ab76c627e4ff8dc29a18237f923ee1f2bee affected from 81c6aea5275eae453719d7f3924da07e668265c5, before 37d01a684e6087e264895ab34b829d2267ad607c affected from 81c6aea5275eae453719d7f3924da07e668265c5, before 49d7c1beac3810983869ed9260dcd444b6a51c8e affected from 81c6aea5275eae453719d7f3924da07e668265c5, before d129cfc783b5ff091f5edcccf8129608ec50c000 affected from 81c6aea5275eae453719d7f3924da07e668265c5, before 728c856d7da04fb79f7aa00e974ffb6f55e55995
Other versions: unaffected
|
| Linux |
affected 3.13 unaffected before 3.13 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.61 up to and including 6.18.* unaffected from 7.3.2 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99557 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99557
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99557
trivy image --scanners vuln IMAGE | grep CVE-2026-99557
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/500d7e85af3116803d2cdae9f3a8319e782b84e2 git.kernel.org
- https://git.kernel.org/stable/c/ba0a9ccfd717a603ac10520f723cf4a4881e61b6 git.kernel.org
- https://git.kernel.org/stable/c/12646a00f8549c9f17e5213c30bd608e81fee8f9 git.kernel.org
- https://git.kernel.org/stable/c/4ec54ab76c627e4ff8dc29a18237f923ee1f2bee git.kernel.org
- https://git.kernel.org/stable/c/37d01a684e6087e264895ab34b829d2267ad607c git.kernel.org
- https://git.kernel.org/stable/c/49d7c1beac3810983869ed9260dcd444b6a51c8e git.kernel.org
- https://git.kernel.org/stable/c/d129cfc783b5ff091f5edcccf8129608ec50c000 git.kernel.org
- https://git.kernel.org/stable/c/728c856d7da04fb79f7aa00e974ffb6f55e55995 git.kernel.org
Source: the record CVE-2026-99557 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse