CVE-2026-143357: bpf: Don't look for the SRH again in the End.BPF helpers

Published Dec 3, 2026
·
Updated

In 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 have two SRHs. Thus inputactionendbpf() uses IP6FHFSKIPRH to skip routing headers with segmentsleft 0. The helpers bpflwtseg6storebytes() and bpflwtseg6adjustsrh() can reallocate the head of the skb. Thus they look for the SRH again, but without this flag.

+------------------------+ <- the helpers: srhstate->srh | SRH 1, segmentsleft 0 | +------------------------+ <- inputactionendbpf(): srhstate->srh | SRH 2 | and srhstate->hdrlen +------------------------+

Then the helpers check offset against the wrong limits. If a helper changes TLVs, seg6bpfhasvalidsrh() writes the length of SRH 2 to SRH 1.

Neither helper changes the offset of the SRH from skb->data. Calculate the new address from this offset. To add IP6FHFSKIPRH is not sufficient, because advancenextseg() can set segmentsleft of SRH 2 to 0. The helper bpflwtseg6action() can change the headers and still looks for the SRH.

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
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Exposure is limited to Linux kernel systems using the End.BPF Segment Routing for IPv6 path where packets can contain multiple SRHs. The affected behavior involves the End.BPF helpers bpf_lwt_seg6_store_bytes(), bpf_lwt_seg6_adjust_srh(), and bpf_lwt_seg6_action().

2

What packet condition triggers the incorrect SRH handling?

The issue arises when a packet has two SRHs and an earlier SRH has segments_left set to 0, causing End.BPF processing to select the later SRH while helper processing can re-find the earlier one. Header changes or TLV modifications can then apply length validation or updates against the wrong SRH.

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