UBUNTU-CVE-2026-90039: Use After Free
In the Linux kernel, the following vulnerability has been resolved: NFSD: Guard admin state-revocation walks with NFSDNETUP Writing to /proc/fs/nfsd/unlockfilesystem, or sending the NFSDCMDUNLOCKFILESYSTEM or NFSDCMDUNLOCKEXPORT 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->nfsdserv, but a listener added via portlist or netlink listenerset sets nn->nfsdserv before any nfsd thread starts. nfsdstartupnet() has not yet allocated nn->confidhashtbl, so the walkers dereference a NULL table. A local administrator with CAPSYSADMIN can crash the kernel this way without ever starting the server. nn->nfsdserv is set when the service is created, which precedes table allocation. NFSDNETUP instead brackets the window where the tables are live: set at the end of nfsdstartupnet() and cleared in nfsdshutdownnet() after they are freed, both under nfsdmutex. Gating the three unlock paths on NFSDNETUP fixes the startup-time NULL dereference while preserving the earlier post-shutdown use-after-free fix.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
In Linux kernel NFSD, gate the /proc/fs/nfsd/unlock_filesystem, NFSD_CMD_UNLOCK_FILESYSTEM, and NFSD_CMD_UNLOCK_EXPORT unlock walks on NFSD_NET_UP, so they run only while the NFSv4 client tables are live.