Skip to contentSkip to conversation

CVE-2026-31645: net: lan966x: fix page pool leak in error paths

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

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

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

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

net: lan966x: fix page pool leak in error paths

lan966x_fdma_rx_alloc() creates a page pool but does not destroy it if the subsequent fdma_alloc_coherent() call fails, leaking the pool.

Similarly, lan966x_fdma_init() frees the coherent DMA memory when lan966x_fdma_tx_alloc() fails but does not destroy the page pool that was successfully created by lan966x_fdma_rx_alloc(), leaking it.

Add the missing page_pool_destroy() calls in both error paths.

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

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

	Issue introduced in 6.2 with commit 11871aba19748b3387e83a2db6360aa7119e9a1a and fixed in 6.12.82 with commit 73e940c4249dc5ec6422d1fae535d192fb125955
	Issue introduced in 6.2 with commit 11871aba19748b3387e83a2db6360aa7119e9a1a and fixed in 6.18.23 with commit 22e1ee9f22b5c3bb702bb6d4167d770002a85b2b
	Issue introduced in 6.2 with commit 11871aba19748b3387e83a2db6360aa7119e9a1a and fixed in 6.19.13 with commit 4941e234cfd67ac911fb259642b453f9f76aac41
	Issue introduced in 6.2 with commit 11871aba19748b3387e83a2db6360aa7119e9a1a and fixed in 7.0 with commit 076344a6ad9d1308faaed1402fdcfdda68b604ab

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

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:
drivers/net/ethernet/microchip/lan966x/lan966x_fdma.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/73e940c4249dc5ec6422d1fae535d192fb125955
	https://git.kernel.org/stable/c/22e1ee9f22b5c3bb702bb6d4167d770002a85b2b
	https://git.kernel.org/stable/c/4941e234cfd67ac911fb259642b453f9f76aac41
	https://git.kernel.org/stable/c/076344a6ad9d1308faaed1402fdcfdda68b604ab