Skip to contentSkip to conversation

CVE-2026-81002: xdp: fix zero-copy frame layout

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

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

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

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

xdp: fix zero-copy frame layout

xdp_convert_zc_to_xdp_frame() clones an XSK packet into an order-0 page and advertises PAGE_SIZE as its frame size. It allows the copied frame to occupy the page tail needed by skb_shared_info and records zero headroom even when metadata separates the frame header from packet data. An AF_XDP zero-copy packet redirected through cpumap can therefore make the skb overlap skb_shared_info or place it beyond the allocated page.

Limit the copied layout to SKB_WITH_OVERHEAD(PAGE_SIZE) and include the metadata length in frame headroom. Redirect callers already handle a NULL conversion result.

BUG: KASAN: slab-out-of-bounds in skb_gro_receive
Write of size 4 at addr ffff88800cf37004 by task cpumap/1/map:1/146
Call Trace:
 skb_gro_receive (net/core/gro.c:174)
 udp_gro_receive (net/ipv4/udp_offload.c:812)
 inet_gro_receive (net/ipv4/af_inet.c:1539)
 dev_gro_receive (net/core/gro.c:515)
 gro_receive_skb (net/core/gro.c:633)
 cpu_map_kthread_run (kernel/bpf/cpumap.c:395)
 kthread (kernel/kthread.c:436)
 ret_from_fork (arch/x86/kernel/process.c:164)
 ret_from_fork_asm (arch/x86/entry/entry_64.S:255)
Kernel panic - not syncing: KASAN: panic_on_warn set ...

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

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

	Issue introduced in 4.20 with commit b0d1beeff2a97a0cf1965ea8f1d13b8973f22582 and fixed in 6.12.109 with commit 444216dacdbebd3e52d5e704facafbb230da09e9
	Issue introduced in 4.20 with commit b0d1beeff2a97a0cf1965ea8f1d13b8973f22582 and fixed in 6.18.50 with commit 15d1f3c0dbe7a740f779337deb39f23cd8d002c8
	Issue introduced in 4.20 with commit b0d1beeff2a97a0cf1965ea8f1d13b8973f22582 and fixed in 7.2.4 with commit 68d7cc5512238693670fc19c7a615df631e10edf
	Issue introduced in 4.20 with commit b0d1beeff2a97a0cf1965ea8f1d13b8973f22582 and fixed in 7.3-rc1 with commit 71283aaa6c65b3cec84caf1dc78560985737641f

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

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:
net/core/xdp.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/444216dacdbebd3e52d5e704facafbb230da09e9
	https://git.kernel.org/stable/c/15d1f3c0dbe7a740f779337deb39f23cd8d002c8
	https://git.kernel.org/stable/c/68d7cc5512238693670fc19c7a615df631e10edf
	https://git.kernel.org/stable/c/71283aaa6c65b3cec84caf1dc78560985737641f