# CVE-2026-89661: NFSD: Prevent post-shutdown use-after-free in unlock\_filesystem

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-09-11T19:45:49.086Z
- **Modified:** 2026-10-19T09:18:03.997Z

## Who should check

- Anyone running Linux \>= 3daab3112f039cf849f96764019b096bb0a39d04, \< 0c1a755b7212e0835398d4df5e782ea85ccd7476; \>= 3daab3112f039cf849f96764019b096bb0a39d04, \< 292d915d3ba6fd15eeb88351fa10581683073109
- Anyone running Linux 7.0

## Description

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

NFSD: Prevent post-shutdown use-after-free in unlock\_filesystem

Writing a filesystem path to /proc/fs/nfsd/unlock\_filesystem runs
nfsd4\_cancel\_copy\_by\_sb() before nfsd\_mutex is held and before the
handler confirms that nn-\>nfsd\_serv is set. Once nfsd has shut down,
nfs4\_state\_destroy\_net() has freed nn-\>conf\_id\_hashtbl but left the
pointer intact, so the cancel helper iterates freed slab memory as an
array of struct list\_head and then dereferences a bogus nfs4\_client
when it takes clp-\>async\_lock. A local administrator holding
CAP\_SYS\_ADMIN can reach this use-after-free by stopping the server and
then writing to unlock\_filesystem; KASAN reports a slab-use-after-free
read in nfsd4\_cancel\_copy\_by\_sb().

nfsd4\_revoke\_states() walks the same state tables and for that reason
already runs only under nfsd\_mutex with nn-\>nfsd\_serv confirmed
present. Move the async COPY cancel into that protected section so
every NFSv4 state-table walker on this path observes a running server.
Async copies exist only while the server runs, so gating the cancel on
nn-\>nfsd\_serv loses nothing.

## Affected and fixed versions

- Linux: \>= 3daab3112f039cf849f96764019b096bb0a39d04, \< 0c1a755b7212e0835398d4df5e782ea85ccd7476; \>= 3daab3112f039cf849f96764019b096bb0a39d04, \< 292d915d3ba6fd15eeb88351fa10581683073109 (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-89661.md
Affected: Linux >= 3daab3112f039cf849f96764019b096bb0a39d04, < 0c1a755b7212e0835398d4df5e782ea85ccd7476; >= 3daab3112f039cf849f96764019b096bb0a39d04, < 292d915d3ba6fd15eeb88351fa10581683073109; Linux 7.0
Fixed in: Linux 0c1a755b7212e0835398d4df5e782ea85ccd7476, Linux 292d915d3ba6fd15eeb88351fa10581683073109

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

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

### How serious is CVE-2026-89661?

It has no CVSS score yet. Unknown.

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

Linux \>= 3daab3112f039cf849f96764019b096bb0a39d04, \< 0c1a755b7212e0835398d4df5e782ea85ccd7476; \>= 3daab3112f039cf849f96764019b096bb0a39d04, \< 292d915d3ba6fd15eeb88351fa10581683073109; Linux 7.0.

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

Yes. Fixed in Linux 0c1a755b7212e0835398d4df5e782ea85ccd7476, Linux 292d915d3ba6fd15eeb88351fa10581683073109. Upgrade Linux to 292d915d3ba6fd15eeb88351fa10581683073109 or later.

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

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/0c1a755b7212e0835398d4df5e782ea85ccd7476>
- other: <https://git.kernel.org/stable/c/292d915d3ba6fd15eeb88351fa10581683073109>

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

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