Bottom line: CVE-2026-139281 lets a remote attacker make conntrack believe a packet is going somewhere other than where it is delivered. Any firewall rule that says “allow established, drop the rest” is trusting a decision this bug can corrupt, so verify the patch and add a stateless check in front of the rules you actually care about.

BleepingComputer reported on December 3 that a Linux kernel flaw nearly 21 years old allows remote attackers to bypass firewall rules with crafted IPv6 packets. The CVE is 2026-139281, CVSS 9.1, in Netfilter’s connection tracking subsystem. It was introduced in Linux 2.6.15, released in January 2006, and disclosed by Jérémy Jean of ANSSI’s cryptography lab. Patches exist upstream; distributions were still evaluating at publication.

The mechanics are specific and worth understanding, because they tell you exactly which of your rules are exposed. IPv6 fragments with long extension headers cause an internal byte offset calculation to overflow and truncate during reassembly. Header data gets corrupted, conntrack records the wrong tuple, and traffic that a rule set believes it has classified is delivered somewhere else. In the kernel developers’ example, conntrack logs a packet as destined for UDP port 53 while the payload lands on UDP port 9999.

What the bug actually breaks

Conntrack is a cache of flows. The first packet of a flow is evaluated against your rules, a state entry is created, and every subsequent packet is matched against that entry rather than re-evaluated. That is the whole performance model of a stateful firewall, and it is also the trust boundary this bug crosses.

If the state entry is wrong, two things follow. Traffic that should have been dropped gets classified as part of an allowed flow. And traffic that should have been allowed may be classified as something else and dropped, which produces the confusing case: a service stops working for some clients after the patch, because a flow that used to be silently misclassified is now correctly rejected.

Rule construct Depends on conntrack Exposed by this bug
ct state established,related accept yes yes
ct state new rate limits yes yes
NAT with port translation yes yes
ip6 saddr ... tcp dport 22 accept no no
iif eth0 drop at priority raw no no
Fail2ban style set matching on source IP no no

The bottom three rows are stateless or pre-conntrack, which is why the compensating control in this case is not exotic. It is the same one that has always worked: decide on the packet, not on a remembered flow, for the handful of services where being wrong is unacceptable.

Checking what you are running

Start with the version, because the patch is in the stable trees and most distributions have it or are about to.

1
2
3
4
5
6
7
uname -r
# Debian/Ubuntu
apt-cache policy linux-image-$(uname -r) | head -5
# RHEL family
rpm -q kernel --changelog | grep -i 139281
# Alpine
apk info -v linux-lts | head -3

A kernel built after the fix will have the offset arithmetic clamped in nf_conntrack_reasm.c. If you build your own, that is the file to diff against upstream. If you run a distribution kernel, the version comparison is the whole test, and the fastest way to get it wrong is to assume that a linux-image-generic from last week includes a fix that landed this week.

Second check: does your rule set lean on conntrack for anything that matters?

1
2
3
nft list ruleset | grep -nE 'ct (state|status)' | head -40
iptables-save | grep -c 'state ESTABLISHED'
sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max

A count near nf_conntrack_max is its own problem, and it will mask this one: when the table is full, new flows get dropped or evicted, and the symptom looks like packet loss rather than misclassification.

Verifying with a packet

The only test that proves the bypass is closed is a packet that tries it. Build one on a lab host, send it at a host you own, and check both the conntrack entry and the delivery.

1
2
3
4
5
6
7
8
9
from scapy.all import IPv6, IPv6ExtHdrFragment, UDP, send

# lab only: fragmented IPv6 with a long extension header chain,
# payload aimed at 9999, headers shaped to look like DNS
pkt = (IPv6(dst="fd00::2") /
IPv6ExtHdrFragment(offset=0, m=1) /
UDP(sport=40000, dport=53) /
b"\x00" * 1200)
send(pkt)

Then read what the kernel decided:

1
2
conntrack -L -f ipv6 | grep -E 'dport=(53|9999)'
nft list counters table inet filter

If the entry says 53 and the service on 9999 logs a connection, the bug is live on that host. If the entry says 9999, or the packet never reaches 9999, the fix is in. Do this on a host with the rule set you actually deploy, because a default-deny lab box will pass the test for the wrong reason.

Compensating controls that do not need the patch

You cannot always patch on the day a CVE lands. Three controls reduce exposure without touching the kernel.

Move the rules that protect the crown jewels to the raw priority, before conntrack runs. In nftables that is a chain with type filter hook prerouting priority raw, and rules there match on packet headers only. A management port, a database port, and anything that should never be reachable from the internet belong in that chain regardless of this CVE.

Second, stop relying on port-based classification for IPv6. If the only thing standing between an attacker and an internal service is “the packet says 53”, the packet can say whatever it wants. Interface-based and source-prefix rules are not corrupted by a reassembly bug.

Third, drop fragmented IPv6 at the edge if you do not need it. Fragmentation in IPv6 is supposed to be handled by the sender, and a host that never receives fragments cannot be attacked through fragment reassembly.

1
2
nft add rule inet filter prerouting ip6 frag-off != 0 drop
nft add rule inet filter prerouting ip6 exthdr frag exists drop

That second rule is blunt and will break path MTU discovery on badly configured links, so test it before you push it to a production edge. On a homelab or a single-host firewall in front of services that speak TCP over a normal MTU, it costs nothing.

If you were exposed, the log is the only evidence

Conntrack itself keeps no history, so the packet that bypassed your rules left no record in the state table. What does leave a record is whatever was behind the rule. If a service on a port that should have been unreachable logged a connection in the last few weeks, and the source is not a network you recognize, that is the shape of an exploit rather than a misconfiguration.

1
2
3
# services that should never have seen traffic from outside
journalctl -u nginx --since "30 days ago" | grep -vE '10\.|192\.168\.' | head
ss -tn state established '( sport = :9999 )'

Patch first, then read logs. The order matters because a host that is still exposed can be re-entered while you are investigating, and the second entry will look exactly like the first.

What to do this week

Confirm the kernel version on every host that runs a stateful firewall, and write the version down with a date. For hosts you cannot patch immediately, move the rules protecting management interfaces into a raw-priority chain and drop inbound IPv6 fragments at the edge. Then run the packet test once, on one host, and keep the output. A firewall you have not tested since the advisory is a firewall you are assuming works, and this particular assumption had a 21-year head start on you.

FAQ

What is CVE-2026-139281?

CVE-2026-139281 is a Linux kernel flaw in Netfilter’s connection tracking subsystem, rated CVSS 9.1, that allows remote attackers to bypass firewall rules with crafted IPv6 packets. It was introduced in Linux 2.6.15, released in January 2006, making it nearly 21 years old at disclosure. BleepingComputer reported on it December 3, and patches exist upstream.

Which firewall rules are exposed by this bug?

Rules that depend on conntrack are exposed: ct state established,related accept, ct state new rate limits, and NAT with port translation. Stateless rules are not affected, including ip6 saddr ... tcp dport 22 accept, iif eth0 drop at priority raw, and Fail2ban-style set matching on source IP. The bug corrupts the state entry, so anything trusting a remembered flow can be fooled.

How do I check whether my kernel is patched?

Run uname -r and compare the version, then use apt-cache policy linux-image-$(uname -r) on Debian/Ubuntu, rpm -q kernel --changelog | grep -i 139281 on RHEL family, or apk info -v linux-lts on Alpine. A patched kernel has the offset arithmetic clamped in nf_conntrack_reasm.c. If you build your own kernel, diff that file against upstream.

How can I test whether the bypass is closed on my host?

Send a crafted fragmented IPv6 packet with a long extension header chain, shaped to look like DNS but aimed at UDP port 9999, at a host you own. Then run conntrack -L -f ipv6 | grep -E 'dport=(53|9999)'. If the entry says 53 while the service on 9999 logs a connection, the bug is live; if it says 9999 or the packet never arrives, the fix is in.

What can I do if I can’t patch immediately?

Move rules protecting management interfaces into a raw-priority nftables chain that matches on packet headers only, since those run before conntrack. Stop relying on port-based classification for IPv6 and use interface-based or source-prefix rules instead. Optionally drop fragmented IPv6 at the edge, though that will break path MTU discovery on badly configured links, so test before deploying.