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

Published Jul 19, 2026
·
Updated

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

nfsd: release layout stid on setlease failure

nfs4allocstid() publishes the new stid into cl->clstateids via idralloccyclic() under cllock before returning to nfsd4alloclayoutstateid(). When nfsd4layoutsetlease() then fails, the error path frees the layout stateid directly with kmemcachefree() without ever calling idrremove(), leaving the IDR slot pointing at freed slab memory. Any subsequent IDR walker (statesshow, client teardown) dereferences the dangling pointer.

The correct teardown for an IDR-published stid is nfs4putstid(), which removes the IDR slot under cllock, dispatches scfree (nfsd4freelayoutstateid) to release ls->lsfile via nfsd4closelayout(), and drops the nfs4file reference in its tail.

A second issue blocks that switch: nfsd4freelayoutstateid() unconditionally inspects ls->lsfencework via delayedworkpending() under lslock, but INITDELAYEDWORK(&ls->lsfencework, ...) currently runs only after the setlease call. On the setlease-failure path the destructor would touch an uninitialized delayedwork.

nfsd4alloclayoutstateid() nfs4allocstid() / idralloccyclic under cllock / nfsd4layoutsetlease() / fails / nfs4putstid() nfsd4freelayoutstateid() delayedworkpending(&ls->lsfencework) / needs INIT / nfsd4closelayout() / nfsdfileput(ls->lsfile) / putnfs4file()

Fix by hoisting the lsfenced / lsfencedelay / INITDELAYEDWORK initialization above the nfsd4layoutsetlease() call, and replace the manual nfsdfileput + putnfs4file + kmemcachefree cleanup with a single nfs4putstid(stp).

Affected Software

9 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=4.0<5.10.261
Linux Linux kernel>=5.11<5.15.212
Linux Linux kernel>=5.16<6.1.178
Linux Linux kernel>=6.2<6.6.145
Linux Linux kernel>=6.7<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.3
Microsoft azl3 kernel 6.6.144.1-1<6.6.145.2-1
6.6.145.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.145.2-1

Event History

Jul 19, 2026
CVE Published
via MITRE·12:02 PM
Data Sourced
via MITRE·12:02 PM
DescriptionSeverity
Data Sourced
via NVD·12:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·01:03 PM
DescriptionSeverityAffected Software
Jul 20, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:03 AM
Affected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-53399?

CVE-2026-53399 has a severity rating of critical with a CVSS score of 9.8.

2

How do I fix CVE-2026-53399?

To fix CVE-2026-53399, update to the latest version of the Linux kernel where the vulnerability has been addressed.

3

What systems are affected by CVE-2026-53399?

CVE-2026-53399 affects systems running the vulnerable versions of the Linux kernel.

4

What impact does CVE-2026-53399 have on security?

CVE-2026-53399 can lead to unauthorized data access and modification due to the release layout stid on setlease failure.

5

When was CVE-2026-53399 published?

CVE-2026-53399 was published on July 19, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203