CVE-2025-38567
nfsd: avoid ref leak in nfsd_open_local_fh()
Check your servers for CVE-2025-38567
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38567 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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().
Exploitation
EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.07% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 986a21ace186433e0397a59491646edad8c8d636, before fcb0a417fddb605530c4837e0996620f8ed38023 affected from e6f7e1487ab528a6c653bd0d42812ff2942846cd, before c4bf8f26c51e51bbb840935659a7b3b65a802c07 affected from e6f7e1487ab528a6c653bd0d42812ff2942846cd, before e5a73150776f18547ee685c9f6bfafe549714899 affected from 6.15.3, before 6.15.10
Other versions: unaffected
|
| Linux |
affected 6.16 unaffected before 6.16 unaffected from 6.15.10 up to and including 6.15.* unaffected from 6.16.1 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38567 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38567
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38567
trivy image --scanners vuln IMAGE | grep CVE-2025-38567
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/fcb0a417fddb605530c4837e0996620f8ed38023 git.kernel.org
- https://git.kernel.org/stable/c/c4bf8f26c51e51bbb840935659a7b3b65a802c07 git.kernel.org
- https://git.kernel.org/stable/c/e5a73150776f18547ee685c9f6bfafe549714899 git.kernel.org
Source: the record CVE-2025-38567 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse