CVE-2026-143356

Not scored yetLast modified Dec 3, 2026

Description

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

bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()

bpf_skb_net_hdr_push() and bpf_skb_net_hdr_pop() change skb->data and skb->mac_header by len. That is correct in a tc prog, where skb->data is the MAC header. But bpf_lwt_seg6_adjust_srh() calls them in an End.BPF prog, where skb->data is the network header. The MAC header does not move:

before push | free | MAC header | IPv6 | SRH | payload ^ head ^ mac_header ^ data today | free | MAC h| IPv6 | SRH + len | payload ^ head ^ mac_header ^ data this patch | free | MAC header | IPv6 | SRH + len | payload ^ head ^ mac_header ^ data

Users of skb_mac_header() get incorrect bytes until __dev_queue_xmit() sets skb->mac_header again. skb_cow_head() reserves only len bytes. Thus the 16-bit offset skb->mac_header can wrap. A push also changes the "not set" value. In both cases skb_mac_header() points after the skb.

Move the MAC header too. Pass len + skb->mac_len to skb_cow_head(). Keep the "not set" value. The second Fixes tag is for this case. Since that commit an End.BPF prog can get an skb with skb->mac_header not set.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143357In the Linux kernel, the following vulnerability has been resolved: bpf: Don't look for the SRH again in the End.BPF helpers A packet can CVE-2026-143358In the Linux kernel, the following vulnerability has been resolved: bpf: Set a dst for test runs of lwt_in progs When an lwt prog runs on CVE-2026-143359In the Linux kernel, the following vulnerability has been resolved: bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 The mode BPF_LWT_ENCVE-2026-143368.2PIA's OIDC issuer allowlist for Jenkins tokens uses a bare string-prefix check (issuer.startswith(' https://ci.eclipse.org ') in is_issuer_kCVE-2026-143360In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS WhCVE-2026-143361In the Linux kernel, the following vulnerability has been resolved: bpf, cgroup: Keep the skb network offset signed cgroup_skb progs see aCVE-2026-143362In the Linux kernel, the following vulnerability has been resolved: bpf: Require prog fd or capability for cgroup detach Since the commit CVE-2026-143363In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let bpf_arena_free_pages() see a half-set user range If mapCVE-2026-143364In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length before the skip test in stackid_init() staCVE-2026-143365In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length in __bpf_get_stack() again get_perf_callchCVE-2026-143366In the Linux kernel, the following vulnerability has been resolved: spi: pic32-sqi: fail transfer when the BD ring is exhausted pic32_sqi_CVE-2026-143367In the Linux kernel, the following vulnerability has been resolved: bpf, x86: Fix bpf_throw() in a prog with a private stack When the main
CVE-2026-143356: Unscored | Vulnix