CVE-2025-38567

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38567
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38567.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38567
Downstream
Published
2025-08-19T17:02:48.306Z
Modified
2025-11-27T19:35:44.933889Z
Summary
nfsd: avoid ref leak in nfsd_open_local_fh()
Details

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

nfsd: avoid ref leak in nfsdopenlocal_fh()

If two calls to nfsdopenlocalfh() race and both successfully call nfsdfileacquirelocal(), 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 nfsdshutdownnet() waiting for &nn->nfsdnetfree_done.

This patch adds the missing nfsdnetput().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/ee626f5d79d5817bb21d6f048dc0da4c4e383443/cves/2025/38xxx/CVE-2025-38567.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
986a21ace186433e0397a59491646edad8c8d636
Fixed
fcb0a417fddb605530c4837e0996620f8ed38023
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e6f7e1487ab528a6c653bd0d42812ff2942846cd
Fixed
c4bf8f26c51e51bbb840935659a7b3b65a802c07
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e6f7e1487ab528a6c653bd0d42812ff2942846cd
Fixed
e5a73150776f18547ee685c9f6bfafe549714899

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.15.10
Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.16.1