CVE-2026-90039: NFSD: Guard admin state-revocation walks with NFSD_NET_UP
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Guard admin state-revocation walks with NFSD_NET_UP
Writing to /proc/fs/nfsd/unlock_filesystem, or sending the NFSD_CMD_UNLOCK_FILESYSTEM or NFSD_CMD_UNLOCK_EXPORT netlink command, walks the NFSv4 client hash tables to revoke open state and cancel async COPY operations. All three handlers gate that walk on nn->nfsd_serv, but a listener added via portlist or netlink listener_set sets nn->nfsd_serv before any nfsd thread starts. nfsd_startup_net() has not yet allocated nn->conf_id_hashtbl, so the walkers dereference a NULL table. A local administrator with CAP_SYS_ADMIN can crash the kernel this way without ever starting the server.
nn->nfsd_serv is set when the service is created, which precedes table allocation. NFSD_NET_UP instead brackets the window where the tables are live: set at the end of nfsd_startup_net() and cleared in nfsd_shutdown_net() after they are freed, both under nfsd_mutex. Gating the three unlock paths on NFSD_NET_UP fixes the startup-time NULL dereference while preserving the earlier post-shutdown use-after-free fix.
The Linux kernel CVE team has assigned CVE-2026-90039 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.9 with commit 1ac3629bf012592cb0320e52a1cceb319a05ad17 and fixed in 6.18.51 with commit 104a51265042b4424085741c963cb858ac29ec0b Issue introduced in 6.9 with commit 1ac3629bf012592cb0320e52a1cceb319a05ad17 and fixed in 7.2.5 with commit 0146467a2fce845cb6629979c3e9c58dd3d3a6a3 Issue introduced in 6.9 with commit 1ac3629bf012592cb0320e52a1cceb319a05ad17 and fixed in 7.3-rc1 with commit 2f3e6638aebc0ab8afb8b4e9816ea9a1cad85378
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90039
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c
fs/nfsd/nfsctl.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/104a51265042b4424085741c963cb858ac29ec0b https://git.kernel.org/stable/c/0146467a2fce845cb6629979c3e9c58dd3d3a6a3 https://git.kernel.org/stable/c/2f3e6638aebc0ab8afb8b4e9816ea9a1cad85378