AZL-118661: CVE-2026-143357 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
Which deployments are most likely to be exposed?
Deployments using BPF End.BPF processing with IPv6 Segment Routing Headers are relevant. The faulty handling occurs when a packet contains two SRHs, including a first routing header with segments_left set to 0 and a subsequent SRH selected by End.BPF processing.
What conditions are involved in reaching the flawed code path?
The path involves End.BPF helper operations that can modify SRH data or packet headers, including bpf_lwt_seg6_store_bytes(), bpf_lwt_seg6_adjust_srh(), and bpf_lwt_seg6_action(). Reallocation or header changes can cause these helpers to use an SRH address, length, or offset inconsistent with the SRH selected by input_action_end_bpf().
Is there information on a workaround or how to detect prior exploitation?
No workaround, detection method, exploit indicators, or affected configuration defaults are provided in the available data.