In the Linux kernel, the following vulnerability has been resolved: nfsd: release layout stid on setlease failure nfs4_alloc_stid() publishes the… (CVE-2026-53399)
A vulnerability in the Linux kernel's NFS server (nfsd) involves improper release of layout state IDs (stids) on setlease failure. The issue arises because the error path frees the layout stateid directly without removing its IDR slot, leaving a dangling pointer that can be dereferenced later. Additionally, the cleanup code inspects uninitialized delayed work, causing potential use of uninitialized memory. The fix involves proper initialization of delayed work before the setlease call and replacing manual cleanup with a correct teardown function.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel nfsd subsystem occurs when nfs4_alloc_stid() publishes a new stid into cl->cl_stateids under lock, but if nfsd4_layout_setlease() fails, the error path frees the layout stateid directly without calling idr_remove(), leaving an IDR slot pointing to freed memory. Subsequent IDR walkers dereference this dangling pointer. Furthermore, nfsd4_free_layout_stateid() inspects ls->ls_fence_work via delayed_work_pending() without proper initialization on the failure path, leading to use of uninitialized delayed_work. The fix hoists initialization of delayed work before the setlease call and replaces manual cleanup with a single call to nfs4_put_stid(), ensuring proper removal and resource release.
Potential Impact
The vulnerability results in a dangling pointer dereference within the NFS server code of the Linux kernel. This can cause kernel memory corruption or instability during client teardown or state ID iteration. The issue affects the reliability and stability of the NFS server but no direct exploit or remote code execution is indicated. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves proper initialization of delayed work before the setlease call and using the correct teardown function nfs4_put_stid() to release resources safely. Until a patch is applied, cautious handling of NFS server state and monitoring for kernel crashes related to nfsd state ID management is advised.
In the Linux kernel, the following vulnerability has been resolved: nfsd: release layout stid on setlease failure nfs4_alloc_stid() publishes the… (CVE-2026-53399)
Description
A vulnerability in the Linux kernel's NFS server (nfsd) involves improper release of layout state IDs (stids) on setlease failure. The issue arises because the error path frees the layout stateid directly without removing its IDR slot, leaving a dangling pointer that can be dereferenced later. Additionally, the cleanup code inspects uninitialized delayed work, causing potential use of uninitialized memory. The fix involves proper initialization of delayed work before the setlease call and replacing manual cleanup with a correct teardown function.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel nfsd subsystem occurs when nfs4_alloc_stid() publishes a new stid into cl->cl_stateids under lock, but if nfsd4_layout_setlease() fails, the error path frees the layout stateid directly without calling idr_remove(), leaving an IDR slot pointing to freed memory. Subsequent IDR walkers dereference this dangling pointer. Furthermore, nfsd4_free_layout_stateid() inspects ls->ls_fence_work via delayed_work_pending() without proper initialization on the failure path, leading to use of uninitialized delayed_work. The fix hoists initialization of delayed work before the setlease call and replaces manual cleanup with a single call to nfs4_put_stid(), ensuring proper removal and resource release.
Potential Impact
The vulnerability results in a dangling pointer dereference within the NFS server code of the Linux kernel. This can cause kernel memory corruption or instability during client teardown or state ID iteration. The issue affects the reliability and stability of the NFS server but no direct exploit or remote code execution is indicated. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves proper initialization of delayed work before the setlease call and using the correct teardown function nfs4_put_stid() to release resources safely. Until a patch is applied, cautious handling of NFS server state and monitoring for kernel crashes related to nfsd state ID management is advised.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f4wg-8884-3qg5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53399"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27ad2a4a8d5989131bed
Added to database: 07/19/2026, 19:38:21 UTC
Last enriched: 07/19/2026, 20:21:09 UTC
Last updated: 07/20/2026, 17:26:47 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.