# CVE-2025-38567: nfsd: avoid ref leak in nfsd\_open\_local\_fh()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-08-19T17:02:48.306Z
- **Modified:** 2026-06-17T09:17:07.553Z

## Who should check

- Anyone running Linux \>= 986a21ace186433e0397a59491646edad8c8d636, \< fcb0a417fddb605530c4837e0996620f8ed38023; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< c4bf8f26c51e51bbb840935659a7b3b65a802c07; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< e5a73150776f18547ee685c9f6bfafe549714899; \>= 6.15.3, \< 6.15.10
- Anyone running Linux 6.16

## 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 and fixed versions

- Linux: \>= 986a21ace186433e0397a59491646edad8c8d636, \< fcb0a417fddb605530c4837e0996620f8ed38023; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< c4bf8f26c51e51bbb840935659a7b3b65a802c07; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< e5a73150776f18547ee685c9f6bfafe549714899; \>= 6.15.3, \< 6.15.10 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 6.15.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38567. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38567.md
Affected: Linux >= 986a21ace186433e0397a59491646edad8c8d636, < fcb0a417fddb605530c4837e0996620f8ed38023; >= e6f7e1487ab528a6c653bd0d42812ff2942846cd, < c4bf8f26c51e51bbb840935659a7b3b65a802c07; >= e6f7e1487ab528a6c653bd0d42812ff2942846cd, < e5a73150776f18547ee685c9f6bfafe549714899; >= 6.15.3, < 6.15.10; Linu…
Fixed in: Linux 6.15.10

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38567 being exploited?

There is no confirmed exploitation: CVE-2025-38567 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38567?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-38567?

Linux \>= 986a21ace186433e0397a59491646edad8c8d636, \< fcb0a417fddb605530c4837e0996620f8ed38023; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< c4bf8f26c51e51bbb840935659a7b3b65a802c07; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< e5a73150776f18547ee685c9f6bfafe549714899; \>= 6.15.3, \< 6.15.10; Linux 6.16.

### Is there a fix for CVE-2025-38567?

Yes. Fixed in Linux 6.15.10. Upgrade Linux to 6.15.10 or later.

### How do I check if I'm affected by CVE-2025-38567?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/fcb0a417fddb605530c4837e0996620f8ed38023>
- patch: <https://git.kernel.org/stable/c/c4bf8f26c51e51bbb840935659a7b3b65a802c07>
- patch: <https://git.kernel.org/stable/c/e5a73150776f18547ee685c9f6bfafe549714899>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38567>

HTML: <https://flawdb.com/CVE-2025-38567> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38567>
