CVE-2026-143215: net: fix mac_len of skbs copied by generic XDP
In the Linux kernel, the following vulnerability has been resolved:
net: fix maclen of skbs copied by generic XDP
skbppcowdata() copies the header fields of the old skb with skbcopyheader(). skbcopyheader() does not copy maclen.
Generic XDP uses skbppcowdata() for programs with frags support. After such a program, the skb can have maclen 0. cpumapgenericredirect() and tc ingress then get the position of the Ethernet header wrong.
Copy maclen in skbppcowdata(), as devmapgenericredirect() does after skbcopy().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Which traffic paths are affected?
The issue applies when generic XDP runs a program with fragment support, causing skb_pp_cow_data() to copy an skb without preserving mac_len. Subsequent CPU-map generic redirects or TC ingress processing can then calculate the Ethernet header position incorrectly.
How can I identify whether the affected condition occurred?
Inspect skbs after execution of a generic XDP program with fragment support. An affected skb can have mac_len set to 0 before it reaches cpu_map_generic_redirect() or TC ingress.