Skip to contentSkip to conversation

CVE-2026-99361: nfsd: propagate SETXATTR value decode errors

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: propagate SETXATTR value decode errors

nfsd4_decode_setxattr() stores the status returned while assembling a non-empty attribute value, but then unconditionally returns nfs_ok. An allocation failure can therefore leave a NULL value buffer paired with a non-zero length and allow compound processing to continue.

Return the decoder status so that the operation stops on the original error.

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

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

	Issue introduced in 5.9 with commit 23e50fe3a5e6045a573c69d4b0e3d78aa6183323 and fixed in 6.12.117 with commit f394f6d81cda9dc8626aeb556600b9fe94d3a5c0
	Issue introduced in 5.9 with commit 23e50fe3a5e6045a573c69d4b0e3d78aa6183323 and fixed in 6.18.61 with commit 7d464c3e93214a8d1fcbd226f5d622993232bbb3
	Issue introduced in 5.9 with commit 23e50fe3a5e6045a573c69d4b0e3d78aa6183323 and fixed in 7.3.2 with commit 479651d608f3734fd0b8ca6243e247e9f09d0414
	Issue introduced in 5.9 with commit 23e50fe3a5e6045a573c69d4b0e3d78aa6183323 and fixed in 7.4-rc1 with commit cfcfe0b38a66bbc4122c78a2b75e1b97b3534761

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-99361

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/nfs4xdr.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/f394f6d81cda9dc8626aeb556600b9fe94d3a5c0
	https://git.kernel.org/stable/c/7d464c3e93214a8d1fcbd226f5d622993232bbb3
	https://git.kernel.org/stable/c/479651d608f3734fd0b8ca6243e247e9f09d0414
	https://git.kernel.org/stable/c/cfcfe0b38a66bbc4122c78a2b75e1b97b3534761