A 21-Year-Old Linux Bug Can Lie to Your Firewall

The most unsettling Linux bugs are not always the ones that give an attacker a shell. Sometimes they just make the security control you trusted describe the traffic incorrectly.

That is the shape of CVE-2026-139281, a flaw in the Linux kernel’s Netfilter connection tracking — conntrack — when it reassembles fragmented IPv6 packets. Red Hat rates it Critical with a CVSS score of 9.1, requires no privileges or user interaction, and says malicious traffic may bypass firewall rules and reach restricted services. No attacks using it had been confirmed in public sources as of December 3, but the technical details have been public since August.

The bug is a one-byte lie

Netfilter is the kernel packet-filtering framework behind iptables and nftables. Conntrack records connection state so stateful firewall rules can make decisions based on what flow a packet belongs to.

The vulnerable helper, find_prev_fhdr() in net/ipv6/netfilter/nf_conntrack_reasm.c, returns the offset of an IPv6 Next Header field through an int pointer but stores that offset locally in a u8. A u8 tops out at 255. If an attacker builds a long enough IPv6 extension-header chain, the field lands beyond byte 255, the stored offset wraps, and reassembly later updates the wrong byte in the header chain.

The upstream fix gives the clean example: a two-fragment packet can be recorded by conntrack as UDP destination port 53 — DNS — while its payload is actually delivered to UDP port 9999. If your ruleset allows the recorded flow and blocks the real one, the firewall has been lied to at exactly the layer where it decides.

The fix is almost embarrassingly small: change u8 prev_nhoff to int prev_nhoff. One line, in code that dates back to the conntrack subsystem added in Linux 2.6.15 in January 2006. Jérémy Jean posted the patch on August 22; it merged upstream in October and reached mainline in 7.4-rc1 on November 1. The CVE record followed this week. The patch also carries an “Assisted-by: Codex:gpt-5” trailer, though neither the patch nor the commit says whether the AI help was finding the bug, writing the fix, or checking it.

Who should care

This is a firewall bypass, not instant remote code execution. An attacker still needs a reachable restricted service behind the rules, and fragmented IPv6 traffic has to reach the vulnerable kernel. If a Linux host sits behind an upstream firewall that already blocks unsolicited IPv6 inbound, the practical risk is lower. If the host’s own iptables/nftables rules are the only barrier between a sensitive service and untrusted IPv6 traffic, the risk is much more direct.

That distinction probably explains the severity split. Red Hat calls it Critical at 9.1. Canonical assigns Ubuntu Medium priority and a 6.9 score, assessing no confidentiality impact and limited integrity impact. I would not use the lower score as a reason to ignore it; I would use it as a reminder to check exposure before panicking.

Upstream fixed releases include 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, and mainline 7.4-rc1. But distribution kernels complicate the version check because vendors backport fixes into older version numbers. uname -r alone does not prove you are patched or vulnerable; your distro tracker and package changelog matter more.

As of December 3, Debian’s tracker still listed bookworm and trixie as vulnerable, with the fix only in development branches. Ubuntu’s CVE page, updated December 3, lists the standard linux package as vulnerable across supported releases and gives the issue Medium priority. Red Hat shipped a RHEL 8 kernel erratum on December 3, and AlmaLinux published the matching update.

What I’d do

First, inventory the Linux systems that actually receive untrusted IPv6: gateways, VPSes, exposed homelab hosts, and any appliance where the vendor controls the kernel. For Debian and Ubuntu, watch the tracker rather than assuming a routine update already covered it. For appliances, the question for the vendor is simple: does your current firmware include the fix for CVE-2026-139281?

Second, reduce exposure while waiting. Red Hat’s mitigation is blunt: disable IPv6 on systems that do not require it. That is not a casual change on a network that uses IPv6, and neither Debian nor Ubuntu listed a workaround. If your edge can drop unsolicited IPv6 fragments without breaking traffic you need, that is worth testing carefully, but I would treat it as defense-in-depth, not a substitute for the kernel update.

Third, do not let “behind the firewall” become a vague comfort blanket. The whole point of this bug is that one layer’s view of a packet can differ from the delivery path. Segmentation still helps. So does not exposing admin services broadly. But the durable fix is the patched kernel.

My take

A 21-year-old one-byte truncation bug surviving in conntrack is a good reminder that mature code is not the same as fully explored code. The encouraging part is that the fix is tiny, upstream, and already in stable branches. The annoying part is the usual one: the systems most people run get the fix on distribution time, not kernel.org time. Check the tracker, patch when your distro ships it, and until then know which of your Linux boxes can actually see hostile IPv6 fragments.


Sources: Red Hat CVE-2026-139281 · Ubuntu CVE-2026-139281 · Debian security tracker · upstream fix commit · patch submission · The Hacker News · BleepingComputer