CVE-2026-53244: Linux Kernel NFS Lock Leak Denial of Service
A flaw in the Linux kernel's file creation code can leave a parent directory locked indefinitely when certain error conditions occur during file creation via NFS exports. The vulnerability exists in how the kernel handles failed file creation attempts on filesystems that support atomic create operations, causing the parent directory lock to never be released. This can lead to system hangs or denial of service when affected NFS clients or servers attempt file operations.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- —
- Affected products
- 7 configuration(s)
- Published / Modified
- 2026-06-25 / 2026-07-07
NVD description (verbatim)
In the Linux kernel, the following vulnerability has been resolved: VFS: fix possible failure to unlock in nfsd4_create_file() atomic_create() in fs/namei.c drops the reference to the dentry when it returns an error. This behaviour was imported into dentry_create() so that it will drop the reference if an error is returned from atomic_create(), though not if vfs_create() returns an error (in the case where ->atomic_create is not supported). The caller - nfsd4_create_file() - is made aware of this by checking path->dentry, which will either be a counted reference to a dentry, or an error pointer. However the change to use start_creating()/end_creating() (which landed shortly before the dentry_create() change landed, though was likely developed around the same time) means that nfsd4_create_file() *needs* a valid dentry so that it can unlock the parent. The net result is that if NFSD exports a filesystem which uses ->atomic_create, and if a call to ->atomic_create returns an error, then nfsd4_create_file() will pass an error pointer to end_creating() and the parent will not be unlocked. Fix this by changing dentry_create() to make sure path->dentry is always a valid dentry, never an error-pointer. The actual error is already returned a different way. Note that if ->atomic_create() returns a different dentry (which may not be possible in practice) we are guaranteed (because it is only ever provided by d_spliace_alias()) that it will have the same d_parent and so it will have the same effect when passed to end_creating().
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability resides in the Linux kernel's VFS layer, specifically in the interaction between dentry_create() and nfsd4_create_file(). The root cause involves a reference-handling mismatch: atomic_create() is designed to drop a dentry reference on error and return an error pointer, a behavior that was carried into dentry_create(). However, the introduction of start_creating()/end_creating() helper functions requires nfsd4_create_file() to have a valid (non-error) dentry to properly unlock the parent directory. When atomic_create() fails on supported filesystems, an error pointer is passed to end_creating(), which then fails to release the parent directory's lock. The fix ensures dentry_create() always returns a valid dentry structure with the actual error communicated through the existing error-return mechanism, preserving invariants for callers that depend on valid dentry pointers for cleanup.
Business impact
Organizations running NFS servers or services that export filesystems supporting atomic create operations face potential availability disruption. A compromised or malicious NFS client can trigger the condition repeatedly, causing parent directories to become locked and blocking all filesystem operations within those trees. This directly impacts service availability, backup operations, and any dependent applications relying on those exported shares. For environments where NFS is critical infrastructure (storage clusters, backup targets, shared compute resources), this can cascade into widespread outages.
Affected systems
The vulnerability affects the Linux kernel across all versions that contain both the atomic_create() mechanism and the start_creating()/end_creating() refactoring. Systems are vulnerable if: (1) they run an affected kernel version, (2) they export filesystems via NFS (nfsd), and (3) those filesystems use the atomic_create operation. This includes both dedicated NFS servers and systems running nfsd for any purpose. Desktop and workstation Linux systems are generally at lower risk unless they are configured as NFS exporters.
Exploitability
Exploitability requires network access to an NFS server and the ability to initiate file creation requests that trigger atomic_create() failures. No special privileges or credentials are strictly necessary if the NFS export permits such operations—many NFS configurations allow this from any network client. However, practical exploitation requires either legitimate access to the NFS share or the ability to reach the NFS service over the network. The vulnerability is not remotely exploitable against systems not running nfsd, and requires at minimum NFS network exposure. The condition is reliably triggerable by any authorized or unauthorized NFS client that can issue CREATE requests to affected filesystems.
Remediation
Apply kernel patches that fix the dentry_create() function to ensure error conditions are handled without dropping the dentry reference prematurely, and that end_creating() always receives a valid dentry pointer. Verify patches against your Linux distribution's security advisory, as backports and patch versions vary by distribution. For immediate mitigation, restrict NFS export access via firewall rules, IP-based ACLs, or authentication mechanisms to trusted clients only. Disable atomic_create support on exported filesystems if feasible through mount options or filesystem configuration, though this may impact performance. Monitor for unexplained lock contention or hanging filesystem operations on NFS-exported directories.
Patch guidance
Consult your Linux distribution's security update channels (kernel.org security advisories, Red Hat Security Advisories, Ubuntu Security Notices, SUSE Security Updates, etc.) for patched kernel versions specific to your distribution and architecture. The fix will be included in patched kernel releases post-2026-06-25. Verify the patch commit addresses dentry_create() reference handling and end_creating() invocation safety. Test patches in a non-production environment before deployment, particularly if your NFS exports support atomic_create. Many distributions have released or will release kernel updates; subscribe to your vendor's security mailing lists for notification.
Detection guidance
Monitor system logs for NFS-related locking warnings, particularly messages about held locks on parent inodes or stuck nfsd threads. Enable kernel lock debugging (CONFIG_DEBUG_LOCK_ALLOC, lockdep) in non-production systems to detect lock contention anomalies. Watch for NFS client timeouts or ESTALE errors originating from specific directories, which may indicate a locked parent. Audit NFS mount options and exported filesystem types to identify which systems use atomic_create. Correlate NFS client activity with lock-hold duration spikes; legitimate operations should release locks within milliseconds. On affected NFS servers, monitor nfsd thread states for unusual blocking patterns.
Why prioritize this
This vulnerability merits immediate attention despite its HIGH (not CRITICAL) CVSS score due to its denial-of-service nature and availability impact. It affects infrastructure-critical services (NFS/storage), is easily triggerable by any network-connected NFS client with minimal privileges, and requires no user interaction or complex preconditions. The impact is not data compromise but operational continuity—a core concern for production environments. Organizations exporting NFS shares should prioritize patching their kernel versions within standard SLA windows, typically days to weeks depending on risk posture.
Risk score, explained
CVSS 7.5 (HIGH) reflects a network-accessible vulnerability with no authentication or user interaction required, causing availability loss but not confidentiality or integrity compromise. The score does not account for the rarity of certain atomic_create() error paths or deployment-specific factors (e.g., organizations not running nfsd). In practice, risk is elevated for NFS-dependent infrastructure and reduced for client-only systems. The HIGH severity appropriately flags this as a priority patch candidate for systems matching the affected profile, particularly those in managed storage or high-availability roles.
Frequently asked questions
Can this vulnerability be exploited remotely without NFS network access?
No. The vulnerability requires the ability to trigger file creation requests on an NFS-exported filesystem. It is only exploitable if the attacker can reach the NFS service (port 2049 by default) and has sufficient NFS permissions to attempt file creation. Systems not running nfsd or not exporting NFS shares are not vulnerable.
Does this affect NFS clients, NFS servers, or both?
Primarily NFS servers running nfsd and exporting filesystems with atomic_create support. NFS clients themselves are not directly vulnerable, though they may experience service disruption (timeouts, stale file handles) if their NFS server becomes affected and parent directories lock up.
What is the difference between this and a traditional 'lock leak' bug?
This is a lock leak in specialized circumstances: a specific combination of atomic_create failure, VFS reference handling, and the start_creating/end_creating pattern. It is not a blanket locking defect but rather a subtle interaction between two kernel subsystems that broke when one was refactored. Most file operations and error paths do not trigger it.
Can I mitigate this without patching the kernel?
Partial mitigation is possible: restrict NFS export access via network ACLs and firewall rules, enforce NFS authentication (Kerberos, TLS), and monitor for lock contention. However, these are defenses-in-depth measures and do not eliminate the underlying vulnerability. Kernel patching is the definitive fix.
This analysis is provided for informational and defensive purposes. The vulnerability details and fix approach are derived from kernel commit documentation and security advisories. Patch availability, affected kernel versions, and deployment guidance vary by Linux distribution; verify against your vendor's official security advisory before patching. This document does not constitute legal or compliance advice. Organizations should conduct their own risk assessment based on their specific infrastructure, NFS deployment patterns, and exposure to untrusted clients. SEC.co makes no warranty regarding the completeness or accuracy of this analysis. Use this information to prioritize security actions in conjunction with your own vulnerability management and incident response processes. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).
Affected vendors
Related vulnerabilities
- CVE-2026-0270HIGHCortex XSOAR Path Traversal on Linux — Exploit Requirements & Patching Guide
- CVE-2026-0271HIGHPalo Alto Networks Prisma Access Agent Linux Privilege Escalation
- CVE-2026-10001HIGHChrome Sandbox Escape via PerformanceManager Use-After-Free
- CVE-2026-10002HIGHGoogle Chrome PDFium Use-After-Free Vulnerability (CVSS 8.8)
- CVE-2026-10003HIGHChrome Use-After-Free Code Execution Vulnerability Analysis
- CVE-2026-10006HIGHChrome WebAudio Race Condition Remote Code Execution
- CVE-2026-10007HIGHChrome Use-After-Free in SVG Arbitrary Code Execution (CVSS 8.8)
- CVE-2026-10009HIGHChrome Skia Integer Overflow Sandbox Escape – Patch Guidance