CVE-2026-139315: bpf: Pull the inner header for End.DT6 in End.BPF
In the Linux kernel, the following vulnerability has been resolved:
bpf: Pull the inner header for End.DT6 in End.BPF
bpflwtseg6action(SEG6LOCALACTIONENDDT6) pulls the outer headers off the packet and hands it to seg6lookupnexthop(), which reads the inner IPv6 header at skb->data. Nothing says that this header is in the head of the skb, or that there is one. If the head ends with the outer headers, the route is looked up for whatever lies behind the head, and the packet is dropped or leaves by the wrong route. If the program then pushes an SRH with SEG6LOCALACTIONENDB6, seg6dosrhinline() pulls an IPv6 header off a head which has none, and skbpull() hits its BUG(): the kernel panics on a packet from the network.
GRO pulls the inner header of a plain IPv6 in IPv6 packet into the head. It takes a packet which GRO does not look into that far, one with a fragment header in front of the inner header for example, or a device without GRO, and a driver which leaves the inner header in a fragment.
Make sure of the inner header together with the outer ones. The program goes on behind an error of the helper, so do it before the packet is changed. A pull which fails can still have moved the head, so look for the SRH again.
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
Which deployments are exposed to this issue?
Systems using an End.BPF program with the End.DT6 action are affected when it processes IPv6-in-IPv6 traffic whose inner IPv6 header is not present in the skb head. This can occur with packets that GRO does not inspect far enough, such as packets with a fragment header before the inner IPv6 header, or on devices without GRO when the driver leaves the inner header in a fragment.
What does an attacker need to do to trigger the failure?
An attacker needs to send a network packet that reaches the affected End.DT6 processing path and has its inner IPv6 header outside the skb head. If the BPF program subsequently pushes an SRH using the End.B6 action, processing can reach a BUG condition and panic the kernel.
What happens if the system does not panic?
The nexthop lookup can read data behind the skb head instead of the actual inner IPv6 header. The packet may then be dropped or forwarded using the wrong route.
How can administrators assess whether their configuration is at risk?
Review End.BPF programs for use of End.DT6, especially programs that continue with End.B6 processing. Also examine whether affected traffic can arrive with extension or fragment headers before the inner IPv6 header, and whether NIC or driver behavior can leave that header in a packet fragment.