# CVE-2026-53399: nfsd: release layout stid on setlease failure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **CWE:** CWE-476, CWE-416
- **Published:** 2026-07-19T12:02:00.055Z
- **Modified:** 2026-10-19T20:19:18.683Z

## Who should check

- Anyone running Linux \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< d788ef40a7517d22c97ab01700e4ae4c611b6f2f; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 2e0a5d6d62600b8c614d1b55e50ef94035d6adf9; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 7bbb7ce74051c8be4b69ff44ce3db370600dae61; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 48a586e382e4db1dbf958d44b63e081df5f8ed04; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< d369e5edfaaf83a448016e2f1da392b2174be801; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 8dee7c278f1c2b5bb80e17a6281c3812fc8b0cdd; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 83c2b7797742339bb768f83935f7ca33950db138; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 30d55c8aabb261bc3f427d6b9aae7ef6206063f9
- Anyone running Linux 4.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfsd: release layout stid on setlease failure

nfs4\_alloc\_stid() publishes the new stid into cl-\>cl\_stateids via
idr\_alloc\_cyclic() under cl\_lock before returning to
nfsd4\_alloc\_layout\_stateid(). When nfsd4\_layout\_setlease() then
fails, the error path frees the layout stateid directly with
kmem\_cache\_free() without ever calling idr\_remove(), leaving the
IDR slot pointing at freed slab memory. Any subsequent IDR walker
(states\_show, client teardown) dereferences the dangling pointer.

The correct teardown for an IDR-published stid is nfs4\_put\_stid(),
which removes the IDR slot under cl\_lock, dispatches sc\_free
(nfsd4\_free\_layout\_stateid) to release ls-\>ls\_file via
nfsd4\_close\_layout(), and drops the nfs4\_file reference in its
tail.

A second issue blocks that switch: nfsd4\_free\_layout\_stateid()
unconditionally inspects ls-\>ls\_fence\_work via
delayed\_work\_pending() under ls\_lock, but
INIT\_DELAYED\_WORK(&ls-\>ls\_fence\_work, ...) currently runs only
after the setlease call. On the setlease-failure path the
destructor would touch an uninitialized delayed\_work.

    nfsd4\_alloc\_layout\_stateid()
      nfs4\_alloc\_stid()           /\* idr\_alloc\_cyclic under cl\_lock \*/
      nfsd4\_layout\_setlease()     /\* fails \*/
        nfs4\_put\_stid()
          nfsd4\_free\_layout\_stateid()
            delayed\_work\_pending(&ls-\>ls\_fence\_work)  /\* needs INIT \*/
            nfsd4\_close\_layout()  /\* nfsd\_file\_put(ls-\>ls\_file) \*/
          put\_nfs4\_file()

Fix by hoisting the ls\_fenced / ls\_fence\_delay / INIT\_DELAYED\_WORK
initialization above the nfsd4\_layout\_setlease() call, and replace
the manual nfsd\_file\_put + put\_nfs4\_file + kmem\_cache\_free cleanup
with a single nfs4\_put\_stid(stp).

## Affected and fixed versions

- Linux: \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< d788ef40a7517d22c97ab01700e4ae4c611b6f2f; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 2e0a5d6d62600b8c614d1b55e50ef94035d6adf9; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 7bbb7ce74051c8be4b69ff44ce3db370600dae61; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 48a586e382e4db1dbf958d44b63e081df5f8ed04; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< d369e5edfaaf83a448016e2f1da392b2174be801; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 8dee7c278f1c2b5bb80e17a6281c3812fc8b0cdd; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 83c2b7797742339bb768f83935f7ca33950db138; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 30d55c8aabb261bc3f427d6b9aae7ef6206063f9 (cvelist)
- Linux: 4.0 (cvelist)

## Mitigation

- Upgrade Linux to 30d55c8aabb261bc3f427d6b9aae7ef6206063f9 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-53399. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53399.md
Affected: Linux >= c5c707f96fc9a6e5a57ca5baac892673270abe3d, < d788ef40a7517d22c97ab01700e4ae4c611b6f2f; >= c5c707f96fc9a6e5a57ca5baac892673270abe3d, < 2e0a5d6d62600b8c614d1b55e50ef94035d6adf9; >= c5c707f96fc9a6e5a57ca5baac892673270abe3d, < 7bbb7ce74051c8be4b69ff44ce3db370600dae61; >= c5c707f96fc9a6e5a57ca5b…
Fixed in: Linux 2e0a5d6d62600b8c614d1b55e50ef94035d6adf9, Linux 7bbb7ce74051c8be4b69ff44ce3db370600dae61, Linux 48a586e382e4db1dbf958d44b63e081df5f8ed04, Linux 8dee7c278f1c2b5bb80e17a6281c3812fc8b0cdd, Linux 83c2b7797742339bb768f83935f7ca33950db138, Linux 30d55c8aabb261bc3f427d6b9aae7ef6206063f9

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-53399 being exploited?

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< d788ef40a7517d22c97ab01700e4ae4c611b6f2f; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 2e0a5d6d62600b8c614d1b55e50ef94035d6adf9; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 7bbb7ce74051c8be4b69ff44ce3db370600dae61; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 48a586e382e4db1dbf958d44b63e081df5f8ed04; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< d369e5edfaaf83a448016e2f1da392b2174be801; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 8dee7c278f1c2b5bb80e17a6281c3812fc8b0cdd; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 83c2b7797742339bb768f83935f7ca33950db138; \>= c5c707f96fc9a6e5a57ca5baac892673270abe3d, \< 30d55c8aabb261bc3f427d6b9aae7ef6206063f9; Linux 4.0.

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

Yes. Fixed in Linux 2e0a5d6d62600b8c614d1b55e50ef94035d6adf9, Linux 7bbb7ce74051c8be4b69ff44ce3db370600dae61, Linux 48a586e382e4db1dbf958d44b63e081df5f8ed04, Linux 8dee7c278f1c2b5bb80e17a6281c3812fc8b0cdd, Linux 83c2b7797742339bb768f83935f7ca33950db138, Linux 30d55c8aabb261bc3f427d6b9aae7ef6206063f9. Upgrade Linux to 30d55c8aabb261bc3f427d6b9aae7ef6206063f9 or later.

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

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

- patch: <https://git.kernel.org/stable/c/d788ef40a7517d22c97ab01700e4ae4c611b6f2f>
- patch: <https://git.kernel.org/stable/c/2e0a5d6d62600b8c614d1b55e50ef94035d6adf9>
- patch: <https://git.kernel.org/stable/c/7bbb7ce74051c8be4b69ff44ce3db370600dae61>
- patch: <https://git.kernel.org/stable/c/48a586e382e4db1dbf958d44b63e081df5f8ed04>
- patch: <https://git.kernel.org/stable/c/d369e5edfaaf83a448016e2f1da392b2174be801>
- patch: <https://git.kernel.org/stable/c/8dee7c278f1c2b5bb80e17a6281c3812fc8b0cdd>
- patch: <https://git.kernel.org/stable/c/83c2b7797742339bb768f83935f7ca33950db138>
- patch: <https://git.kernel.org/stable/c/30d55c8aabb261bc3f427d6b9aae7ef6206063f9>

## 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-53399>

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