CVE-2025-38567: nfsd: avoid ref leak in nfsd_open_local_fh()
In the Linux kernel, the following vulnerability has been resolved:
nfsd: avoid ref leak in nfsd_open_local_fh()
If two calls to nfsd_open_local_fh() race and both successfully call
nfsd_file_acquire_local(), they will both get an extra reference to the
net to accompany the file reference stored in *pnf.
One of them will fail to store (using xchg()) the file reference in
*pnf and will drop that reference but WON'T drop the accompanying
reference to the net. This leak means that when the nfs server is shut
down it will hang in nfsd_shutdown_net() waiting for
&nn->nfsd_net_free_done.
This patch adds the missing nfsd_net_put().
Security readout for executives and security teams
Plain-English summary
This Linux kernel issue can make an NFS server hang during shutdown after a race leaks a reference. The known impact is operational availability and maintenance disruption, not data theft or code execution. Public severity data is missing, so urgency depends on whether the organization runs affected Linux kernels with NFSD enabled.
Executive priority
Handle as a targeted availability risk for NFS infrastructure. Prioritize systems where NFS service uptime or maintenance windows are business-critical. Do not treat it as confirmed actively exploited based on the provided evidence.
Technical view
The flaw is a race in nfsd_open_local_fh(). Competing calls can both acquire a local file and related network reference. The losing xchg() path drops the file reference but misses nfsd_net_put(), leaking the net reference and causing nfsd_shutdown_net() to wait indefinitely.
Likely exposure
Exposure appears limited to Linux systems running affected kernel versions with the in-kernel NFS server path in use. The source lists affected Linux versions including 6.16, 6.15.10, 6.16.1, and 6.17, but distro backport status is not provided.
Exploitation context
The bundle does not show CISA KEV listing, active exploitation, exploit availability, or an attack vector. The described condition is a concurrency bug in NFSD that can lead to shutdown hang. Treat exploitation details as unknown unless vendor advisories add more evidence.
Researcher notes
Evidence supports a reference leak in a specific NFSD race path. No CVSS, CWE, exploit status, or distro-specific fixed versions are included. The patch-level remedy is the added nfsd_net_put(), but operational remediation should follow kernel or distribution guidance.
Mitigation direction
Apply kernel updates that include the referenced stable fixes.
Check Linux distribution advisories for backported package status.
Prioritize NFS server hosts before general Linux endpoints.
If NFSD is unnecessary, disable it using existing hardening procedures.
Plan maintenance carefully because affected servers may hang during NFS shutdown.
Validation and detection
Inventory Linux kernel versions on NFS server hosts.
Confirm whether NFSD or NFS server services are enabled.
Map installed kernels against vendor fixed package guidance.
Check whether referenced stable commits are included in deployed kernels.
Review shutdown or maintenance logs for NFSD hang symptoms.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38567 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
0CVSS vectors
3Timeline events
0ADP providers
4Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Aug 19, 2025, 17:02 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.