CVE-2026-53215: net: mvpp2: refill RX buffers before XDP or skb use
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: mvpp2: refill RX buffers before XDP or skb use
The RX error path returns the current descriptor buffer to the hardware BM pool. That is only valid while the driver still owns the buffer.
mvpp2_rx_refill() can fail after the current buffer has been handed to XDP or attached to an skb. In those cases mvpp2_run_xdp() may have recycled, redirected, or queued the page for XDP_TX, and an skb free also retires the data buffer. Returning such a buffer to BM lets hardware DMA into memory that is no longer owned by the RX ring.
Refill the BM pool before handing the current buffer to XDP or to the skb. If the allocation fails there, drop the packet and return the still-owned current buffer to BM, preserving the pool depth. Once the refill succeeds, later local drops retire/free the current buffer instead of returning it to BM.
The Linux kernel CVE team has assigned CVE-2026-53215 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 5.15.210 with commit a88b3293b556f4d8fba11db9a8061a6b0d3b69e6 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.1.176 with commit a03cdcedb2cbcc42551dc3e4746929e93c5352d5 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.6.143 with commit 580f92f27cb8724bcc4be98ee89890eab524a2ae Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.12.94 with commit d0c8c4fbd22d260fe28530260656c5fb3c20ce84 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.18.36 with commit 8a2126c5afe89f8ceeb60a3afb9f075b736194cd Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 7.0.13 with commit 02e1b5c4d3b4c658b72c145427cded1bba613fc1 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 7.1 with commit 5e8e2a9624df72fca7c736b2966b2cbf6c9c3ff6 Issue introduced in 5.7.15 with commit 95a936364f2685e9e040c6b179b553604d96de22 Issue introduced in 5.8.2 with commit fba2cf348d9eb50b2049a73cc09313dab6d293f1
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-53215
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/a88b3293b556f4d8fba11db9a8061a6b0d3b69e6 https://git.kernel.org/stable/c/a03cdcedb2cbcc42551dc3e4746929e93c5352d5 https://git.kernel.org/stable/c/580f92f27cb8724bcc4be98ee89890eab524a2ae https://git.kernel.org/stable/c/d0c8c4fbd22d260fe28530260656c5fb3c20ce84 https://git.kernel.org/stable/c/8a2126c5afe89f8ceeb60a3afb9f075b736194cd https://git.kernel.org/stable/c/02e1b5c4d3b4c658b72c145427cded1bba613fc1 https://git.kernel.org/stable/c/5e8e2a9624df72fca7c736b2966b2cbf6c9c3ff6