CVE-2026-139314: bpf: Update the SRH state if End.B6 fails late
bpf: Update the SRH state if End.B6 fails late
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.10.275 - 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?
Deployments using Linux BPF lightweight tunnel Segment Routing actions SEG6_LOCAL_ACTION_END_B6 or END_B6_ENCAP are relevant. The vulnerable path involves BPF programs that continue using SRH-related helpers after encapsulation handling encounters an error.
What conditions are needed to reach the faulty state?
The encapsulation operation must push a new header and reallocate the skb head, then fail because no route is found for the first segment. If execution continues, bpf_lwt_seg6_store_bytes() or bpf_lwt_seg6_adjust_srh() can read the SRH through a pointer into the freed skb head.
What does the fix change?
The fix refreshes the SRH lookup regardless of whether bpf_push_seg6_encap() reports success. This prevents later SRH helper operations from using the stale pointer after a late encapsulation failure.