CVE-2026-139281: Linux kernel conntrack stores an IPv6 Next Header offset in a byte, so a long extension-header chain makes reassembly record the wrong transport tuple and lets traffic past stateful firewall rules

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

Before connection tracking can say which flow an IPv6 fragment belongs to, it has to reassemble the packet, and that is done in net/ipv6/netfilter/nf_conntrack_reasm.c. The kernel CNA record describes a one-type mistake in that file: “find_prev_fhdr() returns the offset of the Next Header field before an IPv6 Fragment header through an int pointer, but stores the offset in a u8 local. An extension header chain can put this field beyond byte 255, causing the offset to wrap before it is saved in the fragment queue.” Reassembly later writes through the wrapped offset, “overwrites another byte in the IPv6 header chain and can make conntrack parse a different transport tuple from the one used by IPv6 local delivery. A two-fragment packet can, for example, be recorded as UDP destination port 53 while its payload is delivered to UDP port 9999.” The kernel CNA scores it 9.1; Red Hat rates it Critical because “an unauthenticated remote attacker can bypass stateful firewall rules” without privileges or user interaction. If a host filters IPv6 with stateful rules, upgrade it to a kernel at or above 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 or 7.3.6 and reboot; until then, treat the host’s IPv6 conntrack state as something an attacker can shape.

CVE-2026-139281 at a glance.

ComponentLinux kernel, netfilter connection tracking for IPv6 (nf_conntrack with nf_defrag_ipv6): find_prev_fhdr() in net/ipv6/netfilter/nf_conntrack_reasm.c
Affected versionsmainline 2.6.15 up to 7.4-rc1 (from commit 9fb9cbb1, “[NETFILTER]: Add nf_conntrack subsystem.”); 5.10.x below 5.10.275, 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
Fixed inmainline 7.4-rc1 (commit 48d522b6, the one Debian cites) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6; eight fix commits in the record. The change is one line, u8 prev_nhoff to int prev_nhoff, “matching the output argument and the other offset variables in this path”
SeverityKernel CNA CVSS 3.1 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), which NVD lists as a secondary metric with no score of its own (status Received, 3 December); Red Hat Critical, 9.1 on the same vector (score marked draft, CWE-681, incorrect conversion between numeric types); SUSE Important, scoring it 7.5 itself (C:N/I:H/A:N: a filter bypass, not a disclosure) and 8.7 on CVSS 4.0; Ubuntu Medium, showing the CNA’s 9.1. An integer truncation whose effect is a misclassified flow, not memory corruption
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30, unchanged on 3 December). EPSS 0.0105 (65th percentile) on 3 December 2026
Who is exposedAny host that classifies IPv6 traffic with connection tracking: a stateful firewall (ct state in nftables, -m conntrack or -m state in ip6tables), a NAT66 or masquerading router, a Docker or Kubernetes node with IPv6 enabled, anything that loads nf_defrag_ipv6. The attacker is remote and unauthenticated and needs to deliver two fragments; Red Hat’s statement: “restricted internal services may receive unauthorized network traffic that bypasses intended packet filtering”. A host with IPv6 disabled, or one that filters IPv6 statelessly, is not in the path
PublishedCVE record 30 November 2026 (kernel CNA, updated 1 December); this page built 2 December 2026, last updated 3 December 2026

What it is

IPv6 puts its options in a chain of extension headers between the fixed header and the transport header, each one naming the next in a Next Header byte. A Fragment header can sit anywhere in that chain, and when the kernel reassembles the fragments it has to remove the Fragment header and fix up the Next Header byte of whichever header came before it. find_prev_fhdr() walks the chain to find that byte and returns its offset through an int *; inside, the working variable was a u8. Headers before the Fragment header are entirely the sender’s to compose, a Hop-by-Hop or Destination Options header can be hundreds of bytes long, and once the Next Header field sits past byte 255 the offset that reaches the fragment queue is the real offset modulo 256.

What happens next is the part that matters. Reassembly patches the Next Header byte at the wrapped offset, which is some other byte in the header chain, and then parses the result to extract the transport tuple that conntrack will record. The host’s own IPv6 input path reassembles and parses the same fragments correctly, so the packet is delivered where its real headers say; conntrack has recorded it as something else. The record’s example, recorded as UDP port 53 and delivered to UDP port 9999, is the shape of every stateful-firewall bypass: a rule that allows DNS and nothing else sees a DNS flow, and the service on 9999 receives the payload. Red Hat’s plain-language description says the same: “malicious network traffic may bypass firewall rules and reach restricted services”.

The fix, by Jérémy Jean of ANSSI and committed by Pablo Neira Ayuso, widens the local to int; one line in nf_conntrack_reasm.c, with a trailer saying the work was “Assisted-by: Codex:gpt-5”. The Fixes: tag points at the commit that introduced nf_conntrack itself, which is why the affected range starts at 2.6.15 and every maintained stable series took a backport in the same week. git.kernel.org and lore.kernel.org refuse automated readers, so the backports are described from the record and the mainline commit from its GitHub mirror.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 3 December 2026; the link in the row is the tracker page, which will be newer than this one. The code dates from 2.6.15 and every distribution builds it; Red Hat marks RHEL 6 through 10 and every OpenShift CoreOS image affected, and SUSE every supported SLE and Leap release.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 and 3 December 2026—
Debianbookworm (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 DSAunstable 7.3.6-1; nothing for trixie or bookworm on 3 December 2026
UbuntuMedium (the page shows the CNA’s 9.1 vector, not an Ubuntu score); linux and every linux-* flavour needs evaluation in every supported release from 14.04 to 26.10 (no version named); patch noted as “fixed by 48d522b”; no USNnothing released on 3 December 2026
RHEL, Rocky, Alma, CentOS StreamCritical, 9.1 (bug 2587230, “Firewall bypass via IPv6 fragment header offset truncation”); RHEL 6 (ELS), 7 (ELS), 8, 9 and 10 kernel, the RHEL 7, 8 and 9 kernel-rt and RHEL for NVIDIA 26 affected, no errata yet; every OpenShift 4 and 5 CoreOS image affected. Mitigation offered: disable IPv6 (solution 8709), “only on systems that do not require IPv6”nothing released on 3 December 2026
openSUSE/SLEImportant (SUSE’s own score 7.5, CVSS 4.0 8.7), overall state pending; every SLES 15 SP7, 16.0 and 16.1 product, SLE Micro, HPC, LTSS and SAP, and openSUSE Leap 15.3 to 16.1 affected via kernel-default, kernel-source, kernel-rt; bug 1292908; no announcement yet (page created 2 December)nothing released on 3 December 2026
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.10.275 / 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, is IPv6 connection tracking loaded, and do the host’s rules rely on it. The second settles it for a host that has never loaded a stateful rule for IPv6; the third tells you what an attacker gains.

# 1. the running kernel (compare with the fixed stable version for its series)
uname -r

# 2. is IPv6 conntrack in play: the defrag module is what reassembles fragments for it
lsmod | grep -E '^(nf_defrag_ipv6|nf_conntrack) '
sysctl net.ipv6.conf.all.disable_ipv6
cat /proc/sys/net/netfilter/nf_conntrack_count 2>/dev/null

# 3. the precondition: stateful rules on IPv6 traffic
nft list ruleset 2>/dev/null | grep -nE 'ct state|ct status|masquerade|snat|dnat' | head -n 20
ip6tables -S 2>/dev/null | grep -nE 'conntrack|state|MASQUERADE|SNAT|DNAT' | head -n 20
conntrack -L -f ipv6 2>/dev/null | head -n 5

A kernel at or above the fixed stable version for its series is done. A host with IPv6 disabled, or with nf_defrag_ipv6 absent and no rule in the third block, does not reassemble IPv6 fragments for conntrack and is not in the path, though nf_defrag_ipv6 loads on demand the first time a stateful IPv6 rule is installed, so that is a statement about now. A host with ct state established,related accept ahead of a default drop, or any NAT66, is the record’s case: the attacker’s first fragment pair creates a conntrack entry under a tuple the rules allow, and the payload reaches the port the rules deny.

# Log review: a conntrack entry for a port the host does not serve, next to a service that received traffic
conntrack -L -f ipv6 -p udp 2>/dev/null | awk '{print $0}' | sort | uniq -c | sort -rn | head -n 20
ss -6 -ulnp
# fragments with extension headers arriving at all: count them before dropping anything
nft add table inet audit 2>/dev/null
nft add chain inet audit in '{ type filter hook input priority -300; }' 2>/dev/null
nft add rule inet audit in meta nfproto ipv6 exthdr frag exists counter 2>/dev/null
nft list chain inet audit in

A hit is a conntrack entry whose destination port nothing on the host listens on, or an entry for an allowed port with byte counts that do not match the service behind it; the misclassified flow exists in the table under the wrong tuple while the real traffic lands elsewhere. The counter rule only says whether fragmented IPv6 with extension headers reaches the host at all, which on most networks is close to never; a non-zero count on a host that expects none is worth a capture, and a capture of two-fragment packets with long Destination Options headers is the record’s packet.

How to fix it

Install the fixed kernel and reboot; the conntrack table is rebuilt from scratch, which also clears any entry an attacker shaped before the upgrade. Debian forky and sid had the fix out on 2 December; Debian trixie and bookworm, Ubuntu and Red Hat had it pending. Red Hat’s mitigation is to disable IPv6 where it is not required.

# 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
# Red Hat's mitigation, for hosts that do not need IPv6 at all (it removes every IPv6 address on the host)
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
printf 'net.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1\n' > /etc/sysctl.d/90-no-ipv6.conf
# After the upgrade, flush the table so no shaped entry survives
conntrack -F 2>/dev/null

Disabling IPv6 is a complete mitigation only on a host that has no IPv6 to lose, which is why Red Hat qualifies it; on a dual-stack server it is an outage. What not to do: do not drop every IPv6 fragment at the edge as a stopgap and consider it done; no advisory recommends that, it breaks any peer whose path MTU forces fragmentation, and the record’s packet is two fragments that look like any other. And do not assume a host-based firewall is the only place this matters: a Linux router doing NAT66 or a Kubernetes node enforcing network policy through conntrack is the same code with more behind it. The fixed kernel is the answer, and flushing the table after the reboot removes anything shaped before it.

Sources

  • CVE-2026-139281 at CVE.org — the kernel CNA record: the commit message with the “stores the offset in a u8 local” and “recorded as UDP destination port 53 while its payload is delivered to UDP port 9999” sentences, the git and version ranges, net/ipv6/netfilter/nf_conntrack_reasm.c (30 November 2026, updated 1 December)
  • Fix commits on git.kernel.org: 48d522b6 (mainline, 7.4-rc1) and the backports c540c1de, 15010052, 6448b59f, 3468d5cb, 55cd1d22, c6168a32, 2004d382; git.kernel.org refuses automated readers, so the mainline commit was read on GitHub: Jérémy Jean, committed by Pablo Neira Ayuso, Fixes: 9fb9cbb1, Assisted-by: Codex:gpt-5, nf_conntrack_reasm.c +1/−1
  • NVD entry — status Received, last modified 1 December 2026; carries the kernel CNA’s 9.1 as a secondary metric and no NVD score, CWE or CPE of its own on 3 December
  • Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium; needs evaluation in every release; updated 2 December) · Red Hat (Critical 9.1, RHEL 6 to 10 affected, bug 2587230, mitigation: disable IPv6, solution 8709) · SUSE (Important, SUSE score 7.5, all products affected, pending, bug 1292908; page created 2 December, read 3 December)
  • CISA KEV catalogue 2026.11.30, not listed (checked 3 December) · EPSS 0.0105, 65th percentile, 3 December 2026

Related reading

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.