UBUNTU-CVE-2026-89689: Critical severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: nfsd: don't free session slots that are still in use nfsd4sequence() can free the very slot it is currently processing. When the session shrinker has reduced setargetmaxslots below sefchannel.maxreqs, the shrink path checks three conditions before calling freesessionslots(): 1. setargetmaxslots < maxreqs (shrink was advertised) 2. slot->slgeneration == seslotgen (slot is up-to-date) 3. seq->maxslots <= setargetmaxslots (client acknowledges) However, seq->slotid is never checked against setargetmaxslots. A client using a slot in the range [setargetmaxslots, maxreqs) can satisfy all three conditions: its slot has the current generation (set by a prior SEQUENCE), and it sends sahighestslotid <= setargetmaxslots to acknowledge the reduction. freesessionslots() then kfrees every slot at index >= setargetmaxslots, including the caller's own slot. The function continues to write slseqid, slflags, slgeneration, and stores the dangling pointer in cstate->slot. Later, nfsd4storecacheentry() copies up to maxrespcached bytes of the compound reply into the freed sldata[] array, corrupting whatever slab object now occupies that address. Additionally, a concurrent thread processing SEQUENCE on a different high-numbered slot can have its slot freed out from under it. NFSD4SLOTINUSE is set under nn->clientlock before the lock is released, so any concurrent thread past SEQUENCE will have its slot marked. However, freesessionslots() does not check NFSD4SLOTINUSE before freeing. Fix both problems by: 1. Checking that the current request's slotid is below the shrink boundary. 2. Scanning slots in the to-be-freed range for NFSD4SLOTINUSE and deferring the shrink if any are active.
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 the nfsd session-slot shrink path, check that the current request's slotid is below se_target_maxslots, scan the slots to be freed for NFSD4_SLOT_INUSE, and defer the shrink if any slot in that range is active.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the listed Ubuntu Linux kernel packages are potentially exposed where the kernel NFS server (nfsd) is in use. The affected package list includes linux-riscv, linux-realtime, linux-hwe-edge, linux-azure, linux-gcp, linux-azure-fde, linux-gke, and linux-aws-5.0.
What does an attacker need to exploit the vulnerability?
An attacker needs network access to the NFS server and must be able to send NFSv4 session requests. The described condition requires use of a session slot at or above the reduced target maximum while acknowledging the slot reduction with a sufficiently low highest-slot value.
What is the impact if exploitation succeeds?
The flaw causes nfsd to free the session slot currently being processed and then continue writing through the dangling slot pointer. A later cached-reply write can corrupt freed kernel memory, with the advisory rating indicating potential high confidentiality, integrity, and availability impact.