CVE-2026-139316: bpf: Validate the SRH which End.DT6 uncovers in End.BPF
bpf: Validate the SRH which End.DT6 uncovers in End.BPF
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
What conditions are required for this issue to be triggered?
An attacker must be able to send a packet whose inner IPv6 routing header is used after an End.BPF program decapsulates it with bpf_lwt_seg6_action(SEG6_LOCAL_ACTION_END_DT6). The BPF program must subsequently use SRH operations such as adding a TLV with bpf_lwt_seg6_adjust_srh(), causing offsets derived from the unvalidated header to be used.
Which deployments are most likely to be exposed?
Exposure depends on use of Segment Routing IPv6 local End.BPF processing and BPF programs that perform End.DT6 decapsulation followed by SRH modification. The supplied information does not indicate that systems without this processing path are affected.
How can I determine whether my configuration uses the affected path?
Review loaded or deployed LWT Segment Routing BPF programs for calls to bpf_lwt_seg6_action with SEG6_LOCAL_ACTION_END_DT6, followed by bpf_lwt_seg6_adjust_srh() or bpf_lwt_seg6_store_bytes(). Also check whether those programs can process attacker-controlled IPv6 packets containing inner routing headers.
What is the impact if the vulnerable path is reached?
A crafted header can cause bpf_lwt_seg6_adjust_srh() to move and write memory beyond the skb head, with the described out-of-bounds access reaching as far as the header length permits within 2 KB. The reported failure is a KASAN slab-out-of-bounds condition.