HIGH Introduced in 6.7
nfsd CompoundOps UAF
CVE-2026-89690
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.9MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: nfsd: defer vfree of compound ops to fix rpc_status UAF The rpc_status netlink dumpit walks every in-flight svc_rqst under rcu_read_lock and, for NFSv4 requests, reads opnums out of args->ops[]. But args->ops is a separate vmalloc buffer freed synchronously by vfree() in nfsd4_release_compoundargs() at the end of every compound. The dumpit's rcu_read_lock pins the svc_rqst struct itself (freed via kfree_rcu), but nothing defers the vfree of the ops buffer across the RCU grace period. A concurrent compound completion can therefore free the buffer while the dumpit is reading it — a use-after-free on vmalloc memory. The trailing seqcount recheck (smp_load_acquire of rq_status_counter) cannot undo a load that already retired against freed memory. Fix by replacing vfree(args->ops) with kvfree_rcu_mightsleep(), which defers the free until after an RCU grace period. This makes the existing rcu_read_lock in the dumpit sufficient to protect the read. The tradeoff is that completed compound ops buffers (up to 200 * sizeof(struct nfsd4_op)) persist in memory slightly longer, across one grace period, before being reclaimed.
02KernelScan AI Analysis
Risk summary
A local attacker who can access the nfsd rpc_status netlink diagnostic interface can trigger a use-after-free by racing a status dump against concurrent NFS compound request completions. The freed vmalloc buffer may be read or corrupted, leading to potential information disclosure, memory corruption, or kernel crash. The NFS server must be active and serving compound requests for the race window to exist.
Vulnerability analysis
The NFS server's rpc_status netlink dump routine walks in-flight requests under RCU protection, but the per-request compound operations buffer is freed synchronously when a request completes rather than being deferred across an RCU grace period. A concurrent netlink dump can therefore read from a buffer that has already been freed, producing a use-after-free on vmalloc-backed memory. The fix replaces the synchronous free with a deferred RCU-aware free so that the existing RCU lock held by the dump routine fully protects the read. The vulnerability is reachable from a local process that can access the nfsd rpc_status netlink interface while the NFS server is actively processing compound requests, requiring the NFS server to be running.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.7 | 6.12.109 | 48f72aff24f7 |
| 6.18 | 6.7 | 6.18.50 | 6703199f4d7e |
| 7.2 | 6.7 | 7.2.4 | 19413ccc4507 |
| mainline | 6.7 | 7.3 | fca26a3fc19e |
| cip/6.12 | 6.7 | 6.12.111-cip32 | 48f72aff24f7 |
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 |