CVE-2026-99364: NFSD: Fix out-of-bounds read in the rpc_status dump
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Fix out-of-bounds read in the rpcstatus dump
nfsdnlrpcstatusgetdumpit() loads args->opcnt and args->ops separately, then walks ops[] before rechecking rqstatuscounter. A COMPOUND that completes between the two loads runs nfsd4releasecompoundargs(), which zeroes opcnt and points ops back at the eight-entry inline array. A dump that already sampled an opcnt of 200 clamps it to the sixteen slots in rqopnum, then indexes iops[0..15]. iops is the last member of struct nfsd4compoundargs and rqargp is allocated at exactly that size, so the walk runs off the end of the allocation. The trailing recheck discards the sampled data, but the read has already happened. NFSDCMDRPCSTATUSGET carries no GENLADMINPERM, so an unprivileged local user can repeat the dump against a busy server until it lands in the window.
Sample opcnt and ops into locals, then finish the counter recheck before dereferencing ops. An unchanged counter means both came from the same COMPOUND, where opcnt cannot exceed what ops holds.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
In nfsd_nl_rpc_status_get_dumpit(), sample opcnt and ops into local variables, complete the counter recheck, and only then dereference ops.