IPv6 Segment Routing lets a router run a BPF program as one of its segment actions (End.BPF), and that program can in turn decapsulate the packet with the End.DT6 action. The kernel CNA record describes what the kernel did with the packet that came out: “bpf_update_srh_state() looks for a routing header in the inner packet and takes it for the new SRH as it is. Nobody has looked at that header, and whoever has sent the packet has written it.” The header need not be a segment routing header and its length need not fit the packet, but it is marked valid, and the record shows KASAN reports of a 2,088-byte read and an 8-byte write out of bounds when a program then adds a TLV “where hdrlen has it”. The kernel CNA and Red Hat score it 8.1, Red Hat rates it Important. If a host runs an SRv6 End.BPF program that uses End.DT6, upgrade it to a kernel at or above 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 or 7.3.6 and reboot.
CVE-2026-139316 at a glance.
| Component | Linux kernel, the BPF lightweight-tunnel helpers for IPv6 Segment Routing: bpf_update_srh_state(), bpf_lwt_seg6_adjust_srh() and bpf_lwt_seg6_store_bytes() in net/core/filter.c |
| Affected versions | mainline 4.19 up to 7.4-rc1 (from commit 486cdf21, which the record names as the first affected and Ubuntu’s page confirms); 5.15.x below 5.15.226, 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.119, 6.18.x below 6.18.65, 7.3.x below 7.3.6. The record lists no fix for 5.10 or earlier series |
| Fixed in | mainline 7.4-rc1 (commit e8b08464, the one Debian cites) and stable 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6; seven fix commits in the record. The fix uses seg6_get_srh(), “which pulls and validates the header”, records that there is no SRH when validation fails, and recomputes the data pointers after the pull because the pull can move the head |
| Severity | Kernel CNA CVSS 3.1 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), which NVD shows as its only metric; Red Hat Important, 8.1 on the same vector (score marked draft, CWE-787); Ubuntu Medium, no score. Remote and unauthenticated, with the high complexity standing for the configuration the attacker needs to find in place |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00623 (51st percentile) on 1 December 2026 |
| Who is exposed | Hosts acting as SRv6 endpoints whose segment for the attacker’s traffic is an End.BPF action, where the program calls bpf_lwt_seg6_action() with SEG6_LOCAL_ACTION_END_DT6 and then edits the header with bpf_lwt_seg6_adjust_srh() or bpf_lwt_seg6_store_bytes(). The attacker is whoever can send an SRv6 packet to that segment (PR:N). Red Hat’s statement: exploitation “requires non-default configurations: IPv6 Segment Routing (SRv6) in use plus a BPF program using End.DT6 decapsulation actively processing traffic”, and “default RHEL deployments don’t configure these BPF actions”. A host with no seg6local routes is not in the path |
| Published | CVE record 30 November 2026 (kernel CNA, updated 1 December); this page built 2 December 2026, last updated 2 December 2026 |
What it is
An SRv6 End.BPF segment runs a BPF program against a packet whose segment routing header (SRH) the kernel has already validated and pulled into the linear head: input_action_end_bpf() does that before the program starts, and the helpers the program may call check their offsets against that header. The program can also decapsulate, and when it calls the End.DT6 action the outer IPv6 header and its SRH are gone and an inner IPv6 packet is what remains. bpf_update_srh_state() then looked for a routing header in the inner packet with ipv6_find_hdr() and simply adopted it as the new SRH. Nothing validated it. The record spells out the three ways that goes wrong: the header can sit in a fragment of the skb rather than the head, so its length byte is read “past the end of the head”; it need not be a segment routing header at all; and its hdrlen need not fit the packet. The state nevertheless says the SRH is valid.
The damage comes from the helpers that trust that state. bpf_lwt_seg6_adjust_srh() grows or shrinks the header at an offset it checks against hdrlen, so a program that adds a TLV at the end of the SRH, where the sender’s hdrlen claims the end is, makes the kernel “move and write memory behind the head of the skb, as far as the sender likes within the 2 KB that hdrlen can say”. The record’s KASAN output shows exactly that: a 2,088-byte out-of-bounds read and an 8-byte out-of-bounds write in bpf_skb_net_hdr_push(), both from a task called srh. The attacker writes the inner packet, so the attacker chooses the length; what the program does with the header is the only part they do not control, and a program that edits the SRH after decapsulation is the natural thing to write for this action.
The fix in the record replaces the unchecked lookup with seg6_get_srh(), the function the rest of the SRv6 code uses, which pulls the header into the head and validates it; a packet without a valid SRH now leaves the state saying there is none and “goes its way as before”, and because the pull can reallocate the head the data pointers are computed after it. GitHub rate-limited our reader for this commit on both the torvalds and gregkh mirrors, so the author and the exact line counts are not on this page; the file is net/core/filter.c by the record and Debian notes the commit as 7.4-rc1. git.kernel.org and lore.kernel.org refuse automated readers.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 and 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The End.BPF action dates from 4.19, so every supported distribution kernel is in range, and Red Hat marks RHEL 8, 9 and 10 affected.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page | — |
| Debian | bookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSA | unstable 7.3.6-1; nothing for trixie or bookworm on 2 December 2026 |
| Ubuntu | Medium, no Ubuntu CVSS yet; linux needs evaluation in every supported release from 14.04 to 26.10 (no version named); no USN | nothing released on 1 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 8.1 (bug 2587405, “Denial of Service via unvalidated IPv6 routing header in BPF”); RHEL 8, 9 and 10 kernel and the RHEL 8 and 9 kernel-rt affected, no errata yet; the page also lists the RHEL 6 kernel as affected and RHEL 7 as not affected, which we report as stated; every OpenShift CoreOS image affected | nothing released on 2 December 2026 |
| openSUSE/SLE | Not consulted: suse.com refused the automated reader on 2 December 2026 (client error, twice) | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later |
How to check
Three questions, in order: which kernel is running, does the host have any SRv6 local segments, and is one of them an End.BPF action whose program decapsulates. The third is the precondition and the hardest to see from outside the program; the route table tells you the program is attached, and the program’s own source tells you whether it calls End.DT6.
# 1. the running kernel (compare with the fixed stable version for its series)
uname -r
# 2. SRv6 in use at all: seg6local routes, and the sysctls that accept segment routing headers
ip -6 route show | grep -E 'encap seg6local'
sysctl net.ipv6.conf.all.seg6_enabled net.ipv6.conf.default.seg6_enabled 2>/dev/null
# 3. the precondition: an End.BPF action and the program behind it
ip -6 route show | grep -E 'seg6local action End.BPF'
bpftool prog list 2>/dev/null | grep -B1 -A3 -E 'lwt_seg6local'
# does the program decapsulate: look for the End.DT6 action (value 6) passed to bpf_lwt_seg6_action
bpftool prog dump xlated id <id> 2>/dev/null | grep -A2 -E 'call bpf_lwt_seg6_action'
grep -rn 'SEG6_LOCAL_ACTION_END_DT6' /path/to/your/bpf/source 2>/dev/nullA kernel at or above the fixed stable version for its series is done, and a kernel below 4.19 has no End.BPF. A host with no seg6local routes is not in the path whatever its kernel; one with an End.BPF route is in the path only if the attached program calls bpf_lwt_seg6_action() with End.DT6 and then touches the header, which the program dump or its source answers. If it does, the attacker is anyone who can route an SRv6 packet to that segment, and there is no log line for an attempt; a successful one is a KASAN report or an oops in bpf_skb_net_hdr_push() or the seg6 helpers.
How to fix it
Install the fixed kernel and reboot; the helpers live in the core network code and reloading the BPF program changes nothing. Debian forky and sid had the fix out on 2 December; Debian trixie and bookworm, Ubuntu and Red Hat had it pending, and the record lists no mitigation.
# Debian forky / sid (trixie and bookworm once a security update names this CVE)
apt update && apt install linux-image-amd64 && systemctl reboot # or linux-image-arm64# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf update kernel && systemctl reboot
zypper patch && systemctl reboot
uname -r# Until then, in the program: do not edit the SRH after an End.DT6 decapsulation, or
# replace the End.BPF segment with the plain End.DT6 action, which validates the inner packet itself
ip -6 route replace <segment>/128 encap seg6local action End.DT6 table <table> dev <dev>
# or drop SRv6 input on the interfaces that face untrusted senders
sysctl -w net.ipv6.conf.<dev>.seg6_enabled=0Replacing the End.BPF segment with the kernel’s own End.DT6 is a real mitigation where the program only existed to decapsulate, because the native action never adopts an unchecked header; where the program does more, the safe change is to stop calling the header helpers after decapsulation until the kernel is fixed. What not to do: do not assume a packet filter in front of the router helps; the inner packet is the attacker’s and it arrives inside a valid outer SRv6 packet. And do not read Red Hat’s RHEL 6 “affected” row as news about a 2.6.32 kernel; it is reported here because the page says it, and Red Hat 6 has no End.BPF.
Sources
- CVE-2026-139316 at CVE.org — the kernel CNA record: the commit message with the “Nobody has looked at that header” sentence, the KASAN reports, the git and version ranges,
net/core/filter.c(30 November 2026, updated 1 December) - Fix commits on git.kernel.org: e8b08464 (mainline, 7.4-rc1) and the backports 6c5f5395, cff400e7, 01e92763, 3ae19aa8, 07f91c34, b9138e88; git.kernel.org refuses automated readers and GitHub rate-limited ours for this commit on 2 December, so the author and line counts are not on this page
- NVD entry — Received on 30 November 2026; shows the CNA’s 8.1 as a secondary metric, no NVD score, CWE or CPE on 2 December
- Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium; needs evaluation in every release; introduced by 486cdf2) · Red Hat (Important 8.1, RHEL 8, 9 and 10 affected; bug 2587405) · SUSE (not reachable on 2 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00623 (percentile 0.512) on 1 December 2026
Related reading
- CVE-2026-139326: Linux kernel devmap egress XDP program frees page-pool fragments as if they were plain pages — the same day’s set, the other BPF networking record
- CVE-2026-99636: Linux kernel reads a TCP header far past a packet when a stale transport offset is negative, and a 64-bit host crashes — a header offset the kernel trusted after the packet changed shape
- CVE-2026-99805: Linux kernel strips nested priority VLAN tags without limit until a packet’s header offsets wrap and a handler reads outside it — the same week, a sender-controlled header count
- CVE-2026-100026: Linux kernel nftables reject in the inet ingress hook builds ICMP errors from stale packet metadata — packet metadata that stopped being true
- CVE-2026-99709: Linux kernel IP fragment reassembly lets a queue’s byte count wrap past 2^32 and frees a socket that is still in use — the IP layer underneath
- The Kernel — module autoload, why an unused subsystem is still an attack surface, and how
install … /bin/falsediffers fromblacklist
This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

