21-year-old Linux kernel bug lets crafted IPv6 fragments slip past firewalls
CVE-2026-139281, a flaw in Netfilter's IPv6 connection tracking dating to 2006, lets remote attackers bypass stateful firewall rules. Fixes landed in stable kernels weeks before the CVE appeared.

The flaw affects Linux firewalls that rely on Netfilter connection tracking for IPv6 traffic.
A bug that has sat in the Linux kernel's firewall code since January 2006 can let a remote attacker send traffic straight past stateful firewall rules. The flaw, CVE-2026-139281, is in Netfilter's connection tracking for fragmented IPv6 packets. It needs no credentials and no user interaction, and Red Hat rates it Critical, with a CVSS score of 9.1.
Fixed kernels have been available for weeks. The CVE record, which is what most vulnerability scanners and patch dashboards react to, arrived only at the end of November. That gap is as much the story as the bug itself.
How the bypass works
Stateful firewalls on Linux, whether written with iptables or nftables, rely on the kernel's connection tracker, conntrack. Rules such as "allow established connections" or "allow DNS on UDP port 53" only work if conntrack correctly identifies the protocol and port of each packet.
IPv6 complicates that. A large IPv6 packet can be split into fragments, and only the first fragment carries the transport header with the port numbers. Before conntrack can classify the traffic, the kernel's IPv6 defragmentation code reassembles the fragments into a whole packet. That code lives in net/ipv6/netfilter/nf_conntrack_reasm.c.
IPv6 also lets a sender insert a chain of optional extension headers between the main header and the payload. During reassembly, the kernel has to remember where a particular header field sits in that chain. According to the fix, it stored that position in a variable that can only hold values up to 255. A sender who builds a long enough chain of extension headers pushes the position past 255, the value wraps around, and reassembly overwrites the wrong byte.
The result is that conntrack and the network stack disagree about what the packet is. The example in the fix shows a two-fragment packet that conntrack records as UDP port 53 (DNS), while its payload is actually delivered to UDP port 9999. Any firewall rule that trusts conntrack's view, such as allowing DNS but blocking everything else, would let that traffic through to a service it was meant to block.
The flaw dates back to when IPv6 connection tracking was added in kernel 2.6.15, released in January 2006, which is why it has been described as nearly 21 years old.
How bad is it?
Vendors disagree. Red Hat scores it 9.1 and has shipped Critical kernel errata, starting with RHSA-2026:107608 for Red Hat Enterprise Linux 8 on December 3, with AlmaLinux following. Canonical rates it Medium, at 6.9, arguing it has no confidentiality impact and only limited integrity impact.
Both views have a point. The bug doesn't give an attacker code execution or data on its own. What it does is defeat a control: the firewall rule protecting a service. How serious that is depends on what sits behind the rule. A database, management interface or internal API that is reachable over IPv6 and protected only by host firewall rules is the worst case.
No exploitation has been reported publicly. But the fix itself contains a working description of the trick, and it has been public since August.
A three-month gap between patch and CVE
The fix was written by Jérémy Jean, deputy head of the cryptography lab at ANSSI, France's national cybersecurity agency. The patch notes that it was assisted by OpenAI's Codex. The timeline:
- August 22: patch posted publicly to the Linux kernel mailing list, with technical details.
- October 19: merged upstream.
- November 1: included in mainline Linux 7.4-rc1, then backported to stable kernels.
- End of November: CVE-2026-139281 published.
- December 3: first Red Hat errata; wide media coverage.
This pattern is normal for the kernel. Since the kernel team became its own CVE numbering authority in 2024, it has assigned CVEs to fixes after they reach stable releases, and it publishes them in large batches. That means the code change, and anything an attacker can learn from it, is often public long before a CVE exists. Organizations that patch only when a scanner flags a CVE are working on a delay. Here, anyone reading the kernel mailing list had more than three months' notice.
Fixed versions and distribution status
The fix is in these upstream stable kernels: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 and 7.3.6, plus mainline 7.4-rc1.
Most systems run distribution kernels, so these numbers matter less than vendor updates:
- Red Hat Enterprise Linux and derivatives: updates are shipping now.
- Debian: 12 (Bookworm) and 13 (Trixie) were listed as vulnerable when the CVE became public; the fixed 7.3.6 kernel is in unstable.
- Ubuntu: Canonical was still evaluating affected releases at the time of writing.
Why it matters in Canada
IPv6 is now widely deployed by Canadian internet providers and cloud platforms, and many virtual machines and containers get public IPv6 addresses by default. Administrators often harden IPv4 carefully but leave IPv6 open, or rely on the same host-based nftables rules for both. Hosting providers, managed service providers, ISPs and anyone running Linux-based routers, firewalls or Kubernetes nodes should check whether services behind host firewall rules are reachable over IPv6.
Many network appliances also run Linux and use Netfilter internally. Their vendors will need to ship their own updates.
Hands-on: checking exposure and filtering fragments with nftables
Patching is the fix. But for systems that can't be rebooted quickly, filtering untrusted IPv6 fragments is a reasonable stopgap. There is a catch that trips up many administrators: a normal firewall rule can't see fragments at all.
The kernel reassembles IPv6 fragments for connection tracking at Netfilter priority -400 on the prerouting hook. Ordinary filter chains run at priority 0, and even the iptables raw table runs at -300. By the time those rules run, the fragments have already been reassembled, which is exactly where this bug happens. A rule such as ip6tables -A INPUT -m frag -j DROP in the usual INPUT chain will therefore not protect you.
First, check whether a host is exposed. These commands show whether IPv6 connection tracking is loaded, whether your rules depend on it, and which services listen on IPv6:
# Is the IPv6 defragmentation module loaded?
lsmod | grep nf_defrag_ipv6
# Do your rules rely on connection tracking?
nft list ruleset | grep -E 'ct state|ct status'
ip6tables-save 2>/dev/null | grep -E 'conntrack|state'
# Which services listen on IPv6 addresses?
ss -tulpn | grep -E '\[::|\[[0-9a-f]'To act on fragments before the kernel reassembles them, the chain needs a priority lower (earlier) than -400. This example creates a separate table, so it doesn't touch existing rules. It runs in measurement mode first, counting fragments without dropping them:
#!/usr/sbin/nft -f
# /etc/nftables.d/ipv6-fragguard.nft
# Stopgap for CVE-2026-139281: inspect IPv6 fragments before
# conntrack defragmentation (priority -400) reassembles them.
table ip6 fragguard {
chain prerouting {
# -450 runs before IPv6 defrag at -400
type filter hook prerouting priority -450; policy accept;
# Trusted networks: replace with your own prefixes
ip6 saddr { 2001:db8:100::/48 } accept
# Measurement mode: count untrusted fragments, don't drop
iifname "eth0" exthdr frag exists counter
}
}Load it with nft -f /etc/nftables.d/ipv6-fragguard.nft, then check the counter after a day or so of normal traffic:
nft list chain ip6 fragguard preroutingIf the counter stays at or near zero, legitimate fragmented traffic from the internet is rare on that host, and it is reasonably safe to start dropping. Change the last rule to:
iifname "eth0" exthdr frag exists counter dropReplace eth0 with your internet-facing interface and the example prefix with your own trusted networks. On Debian and similar systems, add include "/etc/nftables.d/*.nft" to /etc/nftables.conf so the table survives a reboot. Systems that manage rules with iptables-nft, firewalld or Docker can run this table alongside their own, because nftables evaluates each table's chains separately at their own priorities.
Some caveats:
- Fragments are sometimes legitimate. Large DNS responses, some VPNs and tunnels, and certain UDP applications can fragment. Measure before dropping, and don't drop on interfaces that carry trusted internal traffic.
- This is a stopgap, not a fix. It blocks the most practical delivery method from untrusted networks, but the kernel is still vulnerable until it is updated.
- Routers need it too. On a Linux router or firewall that forwards traffic, the same prerouting chain protects the forwarded path, as long as it runs before defragmentation.
Filtering at an upstream router or cloud security group, where available, achieves the same thing without touching the host.
What to do
Update the kernel and reboot. If you can't patch quickly, reduce exposure to untrusted fragmented IPv6 traffic, and don't rely on a single host firewall for sensitive services.
The vulnerability in this story
-
Not yet rated by the NVD: see the record on cve.org.
Scores and dates: NVD (not endorsed by the NVD). Each ID opens its record on cve.org.
