# CVE-2026-99557: ceph: fail readdir when the MDS reply carries no dirfrag

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:45:28.825Z
- **Modified:** 2026-11-23T08:17:58.050Z

## Who should check

- Anyone running Linux \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 500d7e85af3116803d2cdae9f3a8319e782b84e2; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< ba0a9ccfd717a603ac10520f723cf4a4881e61b6; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 12646a00f8549c9f17e5213c30bd608e81fee8f9; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 4ec54ab76c627e4ff8dc29a18237f923ee1f2bee; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 37d01a684e6087e264895ab34b829d2267ad607c; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 49d7c1beac3810983869ed9260dcd444b6a51c8e; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< d129cfc783b5ff091f5edcccf8129608ec50c000; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 728c856d7da04fb79f7aa00e974ffb6f55e55995
- Anyone running Linux 3.13

## 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).

## Affected and fixed versions

- Linux: \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 500d7e85af3116803d2cdae9f3a8319e782b84e2; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< ba0a9ccfd717a603ac10520f723cf4a4881e61b6; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 12646a00f8549c9f17e5213c30bd608e81fee8f9; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 4ec54ab76c627e4ff8dc29a18237f923ee1f2bee; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 37d01a684e6087e264895ab34b829d2267ad607c; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 49d7c1beac3810983869ed9260dcd444b6a51c8e; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< d129cfc783b5ff091f5edcccf8129608ec50c000; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 728c856d7da04fb79f7aa00e974ffb6f55e55995 (cvelist)
- Linux: 3.13 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 728c856d7da04fb79f7aa00e974ffb6f55e55995 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99557. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99557.md
Affected: Linux >= 81c6aea5275eae453719d7f3924da07e668265c5, < 500d7e85af3116803d2cdae9f3a8319e782b84e2; >= 81c6aea5275eae453719d7f3924da07e668265c5, < ba0a9ccfd717a603ac10520f723cf4a4881e61b6; >= 81c6aea5275eae453719d7f3924da07e668265c5, < 12646a00f8549c9f17e5213c30bd608e81fee8f9; >= 81c6aea5275eae453719d7f…
Fixed in: Linux 500d7e85af3116803d2cdae9f3a8319e782b84e2, Linux 12646a00f8549c9f17e5213c30bd608e81fee8f9, Linux 4ec54ab76c627e4ff8dc29a18237f923ee1f2bee, Linux 37d01a684e6087e264895ab34b829d2267ad607c, Linux 49d7c1beac3810983869ed9260dcd444b6a51c8e, Linux 728c856d7da04fb79f7aa00e974ffb6f55e55995

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99557 being exploited?

There is no confirmed exploitation: CVE-2026-99557 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99557?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99557?

Linux \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 500d7e85af3116803d2cdae9f3a8319e782b84e2; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< ba0a9ccfd717a603ac10520f723cf4a4881e61b6; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 12646a00f8549c9f17e5213c30bd608e81fee8f9; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 4ec54ab76c627e4ff8dc29a18237f923ee1f2bee; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 37d01a684e6087e264895ab34b829d2267ad607c; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 49d7c1beac3810983869ed9260dcd444b6a51c8e; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< d129cfc783b5ff091f5edcccf8129608ec50c000; \>= 81c6aea5275eae453719d7f3924da07e668265c5, \< 728c856d7da04fb79f7aa00e974ffb6f55e55995; Linux 3.13.

### Is there a fix for CVE-2026-99557?

Yes. Fixed in Linux 500d7e85af3116803d2cdae9f3a8319e782b84e2, Linux 12646a00f8549c9f17e5213c30bd608e81fee8f9, Linux 4ec54ab76c627e4ff8dc29a18237f923ee1f2bee, Linux 37d01a684e6087e264895ab34b829d2267ad607c, Linux 49d7c1beac3810983869ed9260dcd444b6a51c8e, Linux 728c856d7da04fb79f7aa00e974ffb6f55e55995. Upgrade Linux to 728c856d7da04fb79f7aa00e974ffb6f55e55995 or later.

### How do I check if I'm affected by CVE-2026-99557?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/500d7e85af3116803d2cdae9f3a8319e782b84e2>
- other: <https://git.kernel.org/stable/c/ba0a9ccfd717a603ac10520f723cf4a4881e61b6>
- other: <https://git.kernel.org/stable/c/12646a00f8549c9f17e5213c30bd608e81fee8f9>
- other: <https://git.kernel.org/stable/c/4ec54ab76c627e4ff8dc29a18237f923ee1f2bee>
- other: <https://git.kernel.org/stable/c/37d01a684e6087e264895ab34b829d2267ad607c>
- other: <https://git.kernel.org/stable/c/49d7c1beac3810983869ed9260dcd444b6a51c8e>
- other: <https://git.kernel.org/stable/c/d129cfc783b5ff091f5edcccf8129608ec50c000>
- other: <https://git.kernel.org/stable/c/728c856d7da04fb79f7aa00e974ffb6f55e55995>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99557>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99557> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99557>
