CVE-2026-143356: bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()

Published Dec 3, 2026
·
Updated

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

bpf: Move the MAC header in bpflwtseg6adjustsrh()

bpfskbnethdrpush() and bpfskbnethdrpop() change skb->data and skb->macheader by len. That is correct in a tc prog, where skb->data is the MAC header. But bpflwtseg6adjustsrh() 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 ^ macheader ^ data today | free | MAC h| IPv6 | SRH + len | payload ^ head ^ macheader ^ data this patch | free | MAC header | IPv6 | SRH + len | payload ^ head ^ macheader ^ data

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

Move the MAC header too. Pass len + skb->maclen to skbcowhead(). 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->macheader not set.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description

Frequently Asked Questions

1

Which deployments are exposed to this issue?

The issue applies to Linux kernel deployments that run an End.BPF program using bpf_lwt_seg6_adjust_srh(). The affected execution context is End.BPF, where skb->data points to the network header rather than the MAC header.

2

What must occur for the faulty state to be triggered?

An End.BPF program must adjust an SRH in a way that invokes the network-header push or pop handling. This can leave skb->mac_header incorrectly shifted, including when the MAC-header offset wraps or when its “not set” value is changed.

3

What is the practical effect of the malformed packet metadata?

Code using skb_mac_header() can receive incorrect bytes or a pointer beyond the skb until __dev_queue_xmit() resets skb->mac_header. The fix moves the MAC header appropriately, reserves space for the adjustment plus the MAC-header length, and preserves the “not set” state.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203