Skip to contentSkip to conversation

CVE-2026-99377: NFSv4/pnfs: bound the CB_NOTIFY_DEVICEID array count before allocating

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:

NFSv4/pnfs: bound the CB_NOTIFY_DEVICEID array count before allocating

decode_devicenotify_args() hands the server's notification count straight to kmalloc_objs() as the array length, without checking it against the message that carried it. Bound it the way nfs4xdr.c bounds an attribute length, against xdr_stream_remaining().

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

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

	Issue introduced in 3.0 with commit 1be5683b03a766670b3b629bf6bfeab3ca9239d8 and fixed in 6.12.118 with commit fa718909a6585b73857f5d8a62b830ae0c28234a
	Issue introduced in 3.0 with commit 1be5683b03a766670b3b629bf6bfeab3ca9239d8 and fixed in 6.18.64 with commit 0e712029fa3370308a15b3e136fddc687b56f4b1
	Issue introduced in 3.0 with commit 1be5683b03a766670b3b629bf6bfeab3ca9239d8 and fixed in 7.3.2 with commit 92371c6d8b0ea9e7c336ad902bcc076f2caa2aa8
	Issue introduced in 3.0 with commit 1be5683b03a766670b3b629bf6bfeab3ca9239d8 and fixed in 7.4-rc1 with commit 32f0967ea296d447925465c98e7eec71d4e2f755

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

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/nfs/callback_xdr.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/fa718909a6585b73857f5d8a62b830ae0c28234a
	https://git.kernel.org/stable/c/0e712029fa3370308a15b3e136fddc687b56f4b1
	https://git.kernel.org/stable/c/92371c6d8b0ea9e7c336ad902bcc076f2caa2aa8
	https://git.kernel.org/stable/c/32f0967ea296d447925465c98e7eec71d4e2f755