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 nfsdopenlocalfh()
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->nfsdnetfreedone.
This patch adds the missing nfsdnetput().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-aws-6.14to a version that resolves this vulnerability.Fixed in 6.14.0-1017.17~24.04.1 - Upgrade
Upgrade
ubuntu/linux-azure-6.14to a version that resolves this vulnerability.Fixed in 6.14.0-1017.17~24.04.1 - Upgrade
Upgrade
ubuntu/linux-gcp-6.14to a version that resolves this vulnerability.Fixed in 6.14.0-1020.21~24.04.1 - Upgrade
Upgrade
ubuntu/linux-oem-6.14to a version that resolves this vulnerability.Fixed in 6.14.0-1016.16 - Upgrade
Upgrade
ubuntu/linux-oracle-6.14to a version that resolves this vulnerability.Fixed in 6.14.0-1017.17~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-6.14to a version that resolves this vulnerability.Fixed in 6.14.0-36.36.1~24.04.1 - Upgrade
Upgrade
ubuntu/linux-realtime-6.14to a version that resolves this vulnerability.Fixed in 6.14.0-1016.16~24.04.1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38567?
The severity level of CVE-2025-38567 has not been explicitly defined but it relates to a reference leak in the Linux kernel.
How do I fix CVE-2025-38567?
To fix CVE-2025-38567, ensure you update your Linux kernel to the latest stable version where the vulnerability has been resolved.
What impact does CVE-2025-38567 have on systems?
CVE-2025-38567 could potentially lead to resource leaks affecting system performance and stability.
Which Linux kernel versions are affected by CVE-2025-38567?
CVE-2025-38567 affects versions of the Linux kernel that include the vulnerable implementation of nfsd_open_local_fh().
Is CVE-2025-38567 an isolated issue?
CVE-2025-38567 is specific to the NFS daemon in the Linux kernel and does not impact other components directly.