Skip to contentSkip to conversation

CVE-2026-99376: NFSv4/pnfs: Free the netid when draining a data-server address list

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: Free the netid when draining a data-server address list

nfs4_pnfs_ds_addr_free() releases all three of an address entry's allocations, but the four sites that drain a decoded list before it reaches a data server open-code the loop and free only da_remotestr and the entry, leaking da_netid. Both layout drivers drain that list when nfs4_pnfs_ds_add() returned a data server already in the cache, and again on their error exits.

Lift the drain into nfs4_pnfs_ds_addr_list_free() so an address list has one owner. A striping mount reaches the cached case on nearly every GETDEVICEINFO, since many deviceIDs name the same data servers.

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

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

	Issue introduced in 5.11 with commit 4be78d26810bc506769773ca2f81b4de65f43fd5 and fixed in 6.12.118 with commit 3c964cb0527bd58f46cb3965e4c78033d892683b
	Issue introduced in 5.11 with commit 4be78d26810bc506769773ca2f81b4de65f43fd5 and fixed in 6.18.61 with commit cf4c0b3acb1d0600acc39ecb2f3b22647ac6ddb1
	Issue introduced in 5.11 with commit 4be78d26810bc506769773ca2f81b4de65f43fd5 and fixed in 7.3.2 with commit fde95d71af2c3a3efac0cd4a09f7082e3d1d7805
	Issue introduced in 5.11 with commit 4be78d26810bc506769773ca2f81b4de65f43fd5 and fixed in 7.4-rc1 with commit a7c8e96d1b9fa327cbdea514d047c8295b28d49a

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

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/filelayout/filelayoutdev.c
fs/nfs/flexfilelayout/flexfilelayoutdev.c
fs/nfs/pnfs.h
fs/nfs/pnfs_nfs.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/3c964cb0527bd58f46cb3965e4c78033d892683b
	https://git.kernel.org/stable/c/cf4c0b3acb1d0600acc39ecb2f3b22647ac6ddb1
	https://git.kernel.org/stable/c/fde95d71af2c3a3efac0cd4a09f7082e3d1d7805
	https://git.kernel.org/stable/c/a7c8e96d1b9fa327cbdea514d047c8295b28d49a