Skip to contentSkip to conversation

CVE-2026-98272: net: mvpp2: prevent buffer overflow in page_pool allocation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

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: mvpp2: prevent buffer overflow in page_pool allocation

The per‑processor buffering scheme is supported only if the number of pools (nrxqs * 2) does not exceed MVPP2_BM_MAX_POOLS (8). This is already checked in mvpp2_probe() during the initial activation of percpu_pools.

However, mvpp2_change_mtu() may later call mvpp2_bm_switch_buffers(priv, true) without this check, which can lead to an out-of-bounds access in the priv->page_pool array in mvpp2_bm_init(). The array is sized to hold MVPP2_PORT_MAX_RXQ entries, and mvpp2_get_nrxqs() may return exactly that value. The per-CPU scheme then doubles it to nrxqs * 2, exceeding the array bounds.

Check that the hardware version is MVPP22 or newer and that the number of pools (nrxqs * 2) does not exceed MVPP2_BM_MAX_POOLS before switching to per-CPU mode.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

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

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

	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 5.10.271 with commit 5cefdb7acfc646fbded59ae77dfe0aac4c9e4a3c
	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 5.15.222 with commit 4ac1d5adc4f4dbafbfd270b55cc6d8bf9849d545
	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 6.1.189 with commit dfd46b5584a5881b131008767950e1ab82713c8c
	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 6.6.158 with commit 6569fd85b0ef9a8a6f20b7eb868420b8c7c0c2a0
	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 6.12.112 with commit e7f30dcfa6c64033bf9137362517bd248e5be384
	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 6.18.54 with commit f0e7d62c1eb984dd204095118973c59604144cd8
	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 7.2.8 with commit 1734c3fc0066e228ce1c11e434b7c2527f0a949a
	Issue introduced in 5.4 with commit 7d04b0b13b1175ce0c4bdc77f1278c1f120f874f and fixed in 7.3-rc4 with commit 14cb1e7702e5cb3c58888f6aed498381a73927d2

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

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/marvell/mvpp2/mvpp2_main.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/5cefdb7acfc646fbded59ae77dfe0aac4c9e4a3c
	https://git.kernel.org/stable/c/4ac1d5adc4f4dbafbfd270b55cc6d8bf9849d545
	https://git.kernel.org/stable/c/dfd46b5584a5881b131008767950e1ab82713c8c
	https://git.kernel.org/stable/c/6569fd85b0ef9a8a6f20b7eb868420b8c7c0c2a0
	https://git.kernel.org/stable/c/e7f30dcfa6c64033bf9137362517bd248e5be384
	https://git.kernel.org/stable/c/f0e7d62c1eb984dd204095118973c59604144cd8
	https://git.kernel.org/stable/c/1734c3fc0066e228ce1c11e434b7c2527f0a949a
	https://git.kernel.org/stable/c/14cb1e7702e5cb3c58888f6aed498381a73927d2