CVE-2025-38567

nfsd: avoid ref leak in nfsd_open_local_fh()

MEDIUM
4.7
CVSS Score
Published: August 19, 2025 at 05:02 PM UTC
Updated: June 17, 2026 at 09:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.1%

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.15.3 ≤ v < 6.15.106.16 ≤ v < 6.16.16.16 ≤ v < 6.176.15.36.166.17 rc1986a21ace186433e0397a59491646edad8c8d636e6f7e1487ab528a6c653bd0d42812ff2942846cd
Vendor states this is fixed in c4bf8f26c51e51bbb840935659a7b3b65a802c07 (fixed)
Vendor states this is fixed in e5a73150776f18547ee685c9f6bfafe549714899 (fixed)
Vendor states this is fixed in fcb0a417fddb605530c4837e0996620f8ed38023 (fixed)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c4bf8f26c51e51bbb840935659a7b3b65a802c07
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e5a73150776f18547ee685c9f6bfafe549714899
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fcb0a417fddb605530c4837e0996620f8ed38023

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-362

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card