CRITICAL Introduced in 6.9
nfsd RevokedState UAF
CVE-2026-89658
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.4MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: NFSD: Prevent client use-after-free during NFSv4.0 revoked-state cleanup nfs40_clean_admin_revoked() takes a stateid reference under clp->cl_lock, drops nn->client_lock, and calls nfsd4_drop_revoked_stid(), which dereferences the stateid's client through s->sc_client->cl_lock. The stateid reference does not pin the client, so a teardown racing the dropped lock can free the client while nfsd4_drop_revoked_stid() is still using it. This cleanup runs from the laundromat, so a periodic sweep can race force_expire_client() driven by a write to the clients/<id>/ctl file. Skip a client that is already expiring and otherwise pin it with cl_rpc_users under client_lock before dropping the lock, matching nfsd4_revoke_states().
02KernelScan AI Analysis
Risk summary
A use-after-free in the Linux NFS server's NFSv4.0 admin-revoked state cleanup allows a local root user to corrupt kernel memory by racing a forced client expiry with the server's periodic laundromat sweep. The vulnerability can lead to kernel code execution or a system crash. It requires the NFS server to be running with active NFSv4.0 clients that have admin-revoked state.
Vulnerability analysis
During periodic cleanup of admin-revoked NFSv4.0 state, the server takes a reference on a stateid but not on the client that owns it. After dropping the lock protecting the client list, a concurrent forced client expiry—triggered by writing to the nfsd client control file—can free the client while the cleanup path is still dereferencing it through the stateid, resulting in a use-after-free. The fix skips clients that are already expiring and pins the client with an extra reference before the lock is dropped, keeping it alive for the duration of the cleanup and waking any teardown waiter when the reference is released. The vulnerable path is reachable by a local user with root or CAP_SYS_ADMIN who can write to the nfsd client control interface; the NFS server must be running with NFSv4.0 clients that have admin-revoked state.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.9 | 6.12.109 | 0ae0d2b5c5a1 |
| 6.18 | 6.9 | 6.18.50 | b413ec5b23e3 |
| 7.2 | 6.9 | 7.2.4 | 81cf7f141386 |
| mainline | 6.9 | 7.3 | 7b4f8a1586c4 |
| cip/6.12 | 6.9 | 6.12.111-cip32 | 0ae0d2b5c5a1 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |