# CVE-2025-71090: nfsd: fix nfsd\_file reference leak in nfsd4\_add\_rdaccess\_to\_wrdeleg()

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.38% (percentile 24, 2026-11-26)
- **Published:** 2026-01-13T15:34:51.777Z
- **Modified:** 2026-08-05T12:11:59.817Z

## Who should check

- Anyone running Linux \>= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, \< c07dc84ed67c5a182273171639bacbbb87c12175; \>= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, \< 8072e34e1387d03102b788677d491e2bcceef6f5
- Anyone running Linux 6.17

## Description

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

nfsd: fix nfsd\_file reference leak in nfsd4\_add\_rdaccess\_to\_wrdeleg()

nfsd4\_add\_rdaccess\_to\_wrdeleg() unconditionally overwrites
fp-\>fi\_fds\[O\_RDONLY\] with a newly acquired nfsd\_file. However, if
the client already has a SHARE\_ACCESS\_READ open from a previous OPEN
operation, this action overwrites the existing pointer without
releasing its reference, orphaning the previous reference.

Additionally, the function originally stored the same nfsd\_file
pointer in both fp-\>fi\_fds\[O\_RDONLY\] and fp-\>fi\_rdeleg\_file with
only a single reference. When put\_deleg\_file() runs, it clears
fi\_rdeleg\_file and calls nfs4\_file\_put\_access() to release the file.

However, nfs4\_file\_put\_access() only releases fi\_fds\[O\_RDONLY\] when
the fi\_access\[O\_RDONLY\] counter drops to zero. If another READ open
exists on the file, the counter remains elevated and the nfsd\_file
reference from the delegation is never released. This potentially
causes open conflicts on that file.

Then, on server shutdown, these leaks cause \_\_nfsd\_file\_cache\_purge()
to encounter files with an elevated reference count that cannot be
cleaned up, ultimately triggering a BUG() in kmem\_cache\_destroy()
because there are still nfsd\_file objects allocated in that cache.

## Affected and fixed versions

- Linux: \>= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, \< c07dc84ed67c5a182273171639bacbbb87c12175; \>= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, \< 8072e34e1387d03102b788677d491e2bcceef6f5 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- Upgrade Linux to 8072e34e1387d03102b788677d491e2bcceef6f5 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-71090. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71090.md
Affected: Linux >= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, < c07dc84ed67c5a182273171639bacbbb87c12175; >= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, < 8072e34e1387d03102b788677d491e2bcceef6f5; Linux 6.17
Fixed in: Linux 8072e34e1387d03102b788677d491e2bcceef6f5

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-71090 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, \< c07dc84ed67c5a182273171639bacbbb87c12175; \>= e7a8ebc305f26cab608e59a916a4ae89d6656c5f, \< 8072e34e1387d03102b788677d491e2bcceef6f5; Linux 6.17.

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

Yes. Fixed in Linux 8072e34e1387d03102b788677d491e2bcceef6f5. Upgrade Linux to 8072e34e1387d03102b788677d491e2bcceef6f5 or later.

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

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/c07dc84ed67c5a182273171639bacbbb87c12175>
- patch: <https://git.kernel.org/stable/c/8072e34e1387d03102b788677d491e2bcceef6f5>

## 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-71090>

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