CVE-2026-139315

bpf: Pull the inner header for End.DT6 in End.BPF

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Pull the inner header for End.DT6 in End.BPF

bpf_lwt_seg6_action(SEG6_LOCAL_ACTION_END_DT6) pulls the outer headers off
the packet and hands it to seg6_lookup_nexthop(), 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 SEG6_LOCAL_ACTION_END_B6, seg6_do_srh_inline() pulls an IPv6 header
off a head which has none, and __skb_pull() 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.

Analysis

AI-generated

Technical impact

The issue arises when the Linux kernel’s BPF helper for IPv6 Segment Routing (SEG6_LOCAL_ACTION_END_DT6) pulls packet headers without verifying the existence of an inner IPv6 header. When this helper encounters a packet where the inner header is absent or not located at skb->data, it incorrectly treats the following data as a valid header. This misinterpretation can cause the routing logic to use an incorrect next hop or, if the data is invalid, trigger a kernel panic via __skb_pull(). Consequently, the flaw permits both misrouting of traffic and a denial‑of‑service condition through a crash.

Affected Systems

Vendors: Linux kernel (all distributions). The vulnerability applies to all kernel versions that include the bpf_lwt_seg6_action helper for SEG6_LOCAL_ACTION_END_DT6 and SEG6_LOCAL_ACTION_END_B6. The patch is included in the kernel source via commits referenced in the advisory, but no specific version range is listed in the data.

Risk and Exploitability

The CVSS score is not disclosed, and no EPSS value is provided, so the quantitative severity is unknown. However, because the flaw can cause a kernel panic and misroute packets, it offers a high-impact denial‑of‑service vector that could affect any host running the affected kernel. No exploitation status is recorded in the CISA KEV catalog, but the lack of EPSS data suggests low to moderate exploitation probability unless the attacker can craft specific packet streams that trigger the fault. The primary attack vector is network‑based, requiring the ability to send a specially crafted IPv6 packet to the target.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that contains the commit adding proper validation of the inner header before pulling.
  • If a kernel upgrade is not possible, disable IPv6 Segment Routing support or remove BPF programs that use SEG6_LOCAL_ACTION_END_DT6 and SEG6_LOCAL_ACTION_END_B6 until the patch is applied.
  • Monitor traffic for packets that cause kernel panics or incorrect routing and consider blocking malformed IPv6 packets with egress policies.

Generated by OpenCVE AI on November 30, 2026 at 21:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-119
CWE-125
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Pull the inner header for End.DT6 in End.BPF bpf_lwt_seg6_action(SEG6_LOCAL_ACTION_END_DT6) pulls the outer headers off the packet and hands it to seg6_lookup_nexthop(), 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 SEG6_LOCAL_ACTION_END_B6, seg6_do_srh_inline() pulls an IPv6 header off a head which has none, and __skb_pull() 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.
Title bpf: Pull the inner header for End.DT6 in End.BPF
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-125

    Out-of-bounds Read

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM