# CVE-2026-89670: nfsd: hold rcu across localio cmpxchg retry

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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)
- **Published:** 2026-09-11T19:45:55.846Z
- **Modified:** 2026-10-19T09:18:05.130Z

## Who should check

- Anyone running Linux \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 763c0bad872368304db718f79af7e93048885c67; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 559570f91a7d4d199a72105e4980bef791f4cbf1; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 58884694978a3d7d111edb433d7fd6a6c5af2f34; 986a21ace186433e0397a59491646edad8c8d636; \>= 6.15.3, \< 6.16
- Anyone running Linux 6.16

## Description

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

nfsd: hold rcu across localio cmpxchg retry

nfsd\_file objects are freed via call\_rcu (filecache.c:296), and
nfsd\_file\_slab is created without SLAB\_TYPESAFE\_BY\_RCU
(KMEM\_CACHE(nfsd\_file, 0) at filecache.c:789), so the slab page
backing a freed nfsd\_file becomes freely reclaimable once the RCU
grace period elapses.

The again: retry block in nfsd\_open\_local\_fh() loads a pointer with
cmpxchg and then calls nfsd\_file\_get(new) (which is
refcount\_inc\_not\_zero) without holding rcu\_read\_lock. The sole caller
nfs\_open\_local\_fh() drops rcu\_read\_lock before invoking this helper,
so no outer reader-side critical section covers the load.

    CPU 0 (nfsd\_open\_local\_fh)        CPU 1 (nfsd\_file\_put\_local)
    -----                             -----
    new = cmpxchg(pnf, NULL, ...)
                                      nf = xchg(pnf, NULL)
                                      nfsd\_file\_put(nf)
                                        last ref -\> call\_rcu()
                                      /\* grace period elapses;
                                         slab page recycled \*/
    nfsd\_file\_get(new)
      refcount\_inc\_not\_zero(&new-\>nf\_ref)
      /\* operates on recycled memory \*/

A non-zero word at the nf\_ref offset of the recycled object makes the
refcount bump appear to succeed, and the caller then dereferences
new-\>nf\_net and new-\>nf\_file out of freed memory.

Fix by taking rcu\_read\_lock() immediately before the cmpxchg and
releasing it on all three exits of the if (new) block: the goto-again
retry, the lost-race cleanup path, and the install-succeeded path.
nfsd\_file\_put() and nfsd\_net\_put() stay outside the RCU section so
they remain free to block.

## Affected and fixed versions

- Linux: \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 763c0bad872368304db718f79af7e93048885c67; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 559570f91a7d4d199a72105e4980bef791f4cbf1; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 58884694978a3d7d111edb433d7fd6a6c5af2f34; 986a21ace186433e0397a59491646edad8c8d636; \>= 6.15.3, \< 6.16 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 6.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89670.md
Affected: Linux >= e6f7e1487ab528a6c653bd0d42812ff2942846cd, < 763c0bad872368304db718f79af7e93048885c67; >= e6f7e1487ab528a6c653bd0d42812ff2942846cd, < 559570f91a7d4d199a72105e4980bef791f4cbf1; >= e6f7e1487ab528a6c653bd0d42812ff2942846cd, < 58884694978a3d7d111edb433d7fd6a6c5af2f34; 986a21ace186433e0397a59491…
Fixed in: Linux 763c0bad872368304db718f79af7e93048885c67, Linux 559570f91a7d4d199a72105e4980bef791f4cbf1, Linux 58884694978a3d7d111edb433d7fd6a6c5af2f34, Linux 6.16

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-2026-89670 being exploited?

There is no confirmed exploitation: CVE-2026-89670 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-2026-89670?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-89670?

Linux \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 763c0bad872368304db718f79af7e93048885c67; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 559570f91a7d4d199a72105e4980bef791f4cbf1; \>= e6f7e1487ab528a6c653bd0d42812ff2942846cd, \< 58884694978a3d7d111edb433d7fd6a6c5af2f34; 986a21ace186433e0397a59491646edad8c8d636; \>= 6.15.3, \< 6.16; Linux 6.16.

### Is there a fix for CVE-2026-89670?

Yes. Fixed in Linux 763c0bad872368304db718f79af7e93048885c67, Linux 559570f91a7d4d199a72105e4980bef791f4cbf1, Linux 58884694978a3d7d111edb433d7fd6a6c5af2f34, Linux 6.16. Upgrade Linux to 6.16 or later.

### How do I check if I'm affected by CVE-2026-89670?

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

- other: <https://git.kernel.org/stable/c/763c0bad872368304db718f79af7e93048885c67>
- other: <https://git.kernel.org/stable/c/559570f91a7d4d199a72105e4980bef791f4cbf1>
- other: <https://git.kernel.org/stable/c/58884694978a3d7d111edb433d7fd6a6c5af2f34>

## 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-2026-89670>

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