KernelScan.io

CRITICAL Introduced in 6.9

nfsd RevokedState UAF

CVE-2026-89658

CVSS 9.8 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.4MEDIUM

01

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().

02

Engine v0.6.0

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.

Affectedfs/nfsd/nfs4state.c (NFS server)

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.

03

BranchIntroducedFixed inPatch commit
6.126.96.12.1090ae0d2b5c5a1
6.186.96.18.50b413ec5b23e3
7.26.97.2.481cf7f141386
mainline6.97.37b4f8a1586c4
cip/6.126.96.12.111-cip320ae0d2b5c5a1

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32