CVE-2026-53216: net: mvpp2: limit XDP frame size to the RX buffer
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: mvpp2: limit XDP frame size to the RX buffer
mvpp2 has short and long BM pools, and short pool buffers can be smaller than PAGE_SIZE. The XDP path nevertheless initializes every xdp_buff with PAGE_SIZE as frame size.
XDP helpers use frame_sz to validate tail growth and to derive the hard end of the data area. Advertising PAGE_SIZE for short buffers can let bpf_xdp_adjust_tail() grow a packet past the real allocation, corrupting memory or later tripping skb tailroom checks.
Initialize the XDP buffer with bm_pool->frag_size so XDP tailroom matches the actual buffer backing the packet.
The Linux kernel CVE team has assigned CVE-2026-53216 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 5.15.210 with commit a3ee9231ccec6ec3be2de89c56f897055fd9eab1 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.1.176 with commit ec8e1e5842bc0dbd4c272761f4db3651eecd0339 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.6.143 with commit 3b8b0c3631b19faee53f0d15a49924129b063eec Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.12.94 with commit 994bd2b58d2bd08aa97ec0836cc813cfcb00d749 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 6.18.36 with commit 910617a4e67dbdd5fdb39d9dc6a51e491e1b2c3e Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 7.0.13 with commit 9545cc5ef18ca22d031f2f47c157192460652359 Issue introduced in 5.9 with commit 07dd0a7aae7f72af7cec18909581c2bb570edddc and fixed in 7.1 with commit f3c6aa078927e6fe8121c9c591ddee8716c5305a
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-53216
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/a3ee9231ccec6ec3be2de89c56f897055fd9eab1 https://git.kernel.org/stable/c/ec8e1e5842bc0dbd4c272761f4db3651eecd0339 https://git.kernel.org/stable/c/3b8b0c3631b19faee53f0d15a49924129b063eec https://git.kernel.org/stable/c/994bd2b58d2bd08aa97ec0836cc813cfcb00d749 https://git.kernel.org/stable/c/910617a4e67dbdd5fdb39d9dc6a51e491e1b2c3e https://git.kernel.org/stable/c/9545cc5ef18ca22d031f2f47c157192460652359 https://git.kernel.org/stable/c/f3c6aa078927e6fe8121c9c591ddee8716c5305a