KernelScan.io

HIGH Introduced in 6.7

nfsd CompoundOps UAF

CVE-2026-89690

CVSS 7.8 / 10.0 NVD

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

KernelScan AI6.9MEDIUM

01

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.

02

Engine v0.6.0

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.

Affectedfs/nfsd/nfs4xdr.c (nfsd)

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.

03

BranchIntroducedFixed inPatch commit
6.126.76.12.10948f72aff24f7
6.186.76.18.506703199f4d7e
7.26.77.2.419413ccc4507
mainline6.77.3fca26a3fc19e
cip/6.126.76.12.111-cip3248f72aff24f7

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