CVE-2026-89661

Source
https://cve.org/CVERecord?id=CVE-2026-89661
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89661.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-89661
Downstream
Published
2026-09-11T19:45:49Z
Modified
2026-09-13T03:47:20Z
Summary
NFSD: Prevent post-shutdown use-after-free in unlock_filesystem
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89661.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3daab3112f039cf849f96764019b096bb0a39d04
Fixed
0c1a755b7212e0835398d4df5e782ea85ccd7476
Fixed
292d915d3ba6fd15eeb88351fa10581683073109

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89661.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.2.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89661.json"