Skip to contentSkip to conversation

CVE-2026-99364: NFSD: Fix out-of-bounds read in the rpc_status dump

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

NFSD: Fix out-of-bounds read in the rpc_status dump

nfsd_nl_rpc_status_get_dumpit() loads args->opcnt and args->ops separately, then walks ops[] before rechecking rq_status_counter. A COMPOUND that completes between the two loads runs nfsd4_release_compoundargs(), 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 rq_opnum, then indexes iops[0..15]. iops is the last member of struct nfsd4_compoundargs and rq_argp 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. NFSD_CMD_RPC_STATUS_GET carries no GENL_ADMIN_PERM, 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.

The Linux kernel CVE team has assigned CVE-2026-99364 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.7 with commit bd9d6a3efa9709e653aafbeb859289feccb8e70c and fixed in 6.12.117 with commit 6239443bacb4cb1bb4a9e868474ccc03b2f709ce
	Issue introduced in 6.7 with commit bd9d6a3efa9709e653aafbeb859289feccb8e70c and fixed in 6.18.61 with commit 676b048197cd4b83d63690fc7452a3af9bfd0c43
	Issue introduced in 6.7 with commit bd9d6a3efa9709e653aafbeb859289feccb8e70c and fixed in 7.3.2 with commit 35c0d6b9d14c1f065dfa8338063fbe3b396b4b3c
	Issue introduced in 6.7 with commit bd9d6a3efa9709e653aafbeb859289feccb8e70c and fixed in 7.4-rc1 with commit cbea14890783fead76f878caf0775a62a42049bf

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99364

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/nfsd/nfsctl.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/6239443bacb4cb1bb4a9e868474ccc03b2f709ce
	https://git.kernel.org/stable/c/676b048197cd4b83d63690fc7452a3af9bfd0c43
	https://git.kernel.org/stable/c/35c0d6b9d14c1f065dfa8338063fbe3b396b4b3c
	https://git.kernel.org/stable/c/cbea14890783fead76f878caf0775a62a42049bf