# A 21-year-old netfilter flaw bypasses the Linux firewall

> CVE-2026-139281 truncates an IPv6 header offset in conntrack and allows nftables rules to be bypassed. Red Hat is already patching and Debian remains exposed.
> By José Maldonado · Cybersecurity · 2026-12-05

The Linux firewall has spent two decades making decisions based on a number that, under certain conditions, it reads incorrectly. A flaw in the kernel's connection tracking allows an IPv6 packet to reach a port that nftables or iptables rules considered closed, and the problem is not solved by rewriting those rules. Red Hat's [advisory on the netfilter flaw](https://access.redhat.com/security/cve/CVE-2026-139281) rates CVE-2026-139281 as critical, at 9.1 out of 10, and the RHEL 8 kernel received the patch on December 3, with a mandatory reboot.

The affected piece is \`nf\_conntrack\`, the module that remembers the state of each connection so the firewall knows whether a packet belongs to a legitimate session. When IPv6 fragments arrive, the kernel has to reassemble them and store the position in the header where it must write afterwards. That calculation is stored in a one-byte variable, so any value above 255 is truncated and the kernel ends up rewriting another part of the header.

The [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-139281) describes the result as a destination port different from the real one. A service that should only be accessible from the internal network can receive traffic from outside, although there is no privilege escalation or code execution: each application still checks credentials. Even so, the exposure changes, and the gap between the upstream patch and the package running on a specific server is the real risk this week.

## One byte that decides which port the traffic reaches

The mechanism fits in one sentence: the kernel wants to know where the Next Header field is within a chain of extended IPv6 headers, and to do so it walks the fragments with the \`find\_prev\_fhdr()\` function. That function returns an integer that can exceed 255 when the chain is long, but the code stores it in a variable of type \`u8\`.

With that truncated value, reassembly writes the field in the wrong place and the packet remains valid: what changes is the port that conntrack records. On overflow, an offset of 260 becomes 4, and a packet that appeared to be directed at port 53 can end up on another blocked UDP port.

The scope deserves qualification. The vulnerable kernel must process manipulated fragments and the destination must not have its own controls, so there is no free entry to any service. The difference matters because many internal architectures assume the firewall is the only door.

## Why doesn't changing the nftables rules fix anything?

The immediate temptation is to add rules that block IPv6 fragments or force full traffic inspection. It works only partially and has a cost: filtering fragments at a perimeter firewall can break legitimate traffic, and disabling IPv6 in production requires first reviewing what depends on it, from name resolution to management access.

The error occurs before the firewall decides. When conntrack records a port that is not the real one, rule evaluation is done on false information, and no nftables syntax corrects data that arrives wrong from the kernel. The complete solution is the patched kernel, and Red Hat says so plainly: a reboot is required for the fix to take effect.

For those who cannot reboot immediately, the advisory offers partial relief: disabling IPv6 where it is not used. It is reasonable on a server that only speaks IPv4 and risky where IPv6 is part of the management path, so first check whether the interface has global addresses and whether monitoring resolves through that route.

## Which versions are patched and which are not?

The stable kernel branches have carried the fix for days, but each distribution backports it at its own pace and with its own build number. This is the snapshot as of December 4, with the caveat that repositories change daily.

Branch or product

First fixed version

Status

Linux 5.10

5.10.275

Patch available

Linux 5.15

5.15.226

Patch available

Linux 6.1

6.1.193

Patch available

Linux 6.6

6.6.163

Patch available

Linux 6.12

6.12.119

Patch available

Linux 6.18

6.18.65

Patch available

Linux 7.3

7.3.6

Patch available

RHEL 8

4.18.0-553.193.1.el8\_10

Patch with reboot

Debian bookworm and trixie

No fixed version

Vulnerable

Ubuntu 26.04 LTS

Under evaluation

Unconfirmed

Debian is the most awkward case. Its [security tracker](https://security-tracker.debian.org/tracker/CVE-2026-139281) listed bookworm and trixie as vulnerable at the close of this piece, while forky and sid already had fixed packages. For a stable server that does not change branches, that means waiting for the backport or accepting the risk, and neither option is comfortable.

## The detail that separates a critical advisory from a medium one

Red Hat scores the flaw as critical and Canonical keeps it at medium priority, with the standard Ubuntu 26.04 LTS package still pending evaluation. It is not contradictory: each vendor assesses the impact on its products and its default configurations. The disagreement is a reminder that the severity label does not replace a review of one's own inventory.

The branches with the patch share the same fix in the fragmentation code, so a server with the December kernel should be covered even if the version number does not match the table. The reliable check is not looking at the kernel version, but at the specific vendor package and its advisory.

The researcher who signed the fix is Jérémy Jean, and the commit was reviewed by Pablo Neira Ayuso, the netfilter maintainer. The patch replaces the one-byte variable with an integer large enough to preserve the real position of the header. It is essentially a one-line change, and that contrast explains why it went unnoticed for two decades.

## If you can't reboot the server this week

The first thing is to know whether the system is exposed. If the kernel does not accept IPv6, the flaw cannot be reached; if it does and there are services that rely on the firewall to remain invisible, the exposure is real. A quick check is to review whether the interface has global IPv6 addresses and whether there are rules filtering ports in that family.

Then comes deciding the patching order. Servers with ports open to the internet and internal services on the same machine go first, as do gateways and Kubernetes nodes that perform NAT. Desktop machines can wait for the normal update cycle if no one else depends on their firewall.

The third measure is organizational: noting which kernels remain pending a reboot and with what deadline. The Red Hat advisory recalls that installing the package is not enough, something that is forgotten on machines that accumulate weeks of uptime. As we reported when reviewing why [Ubuntu takes 64 days to patch the kernel](https://observatorioblockchain.com/en/cybersecurity/ubuntu-kernel-cve-parches-debian/), the delay between the advisory and the package is the part most noticeable in production.

## A 2006 flaw that remains open in Debian

This bug was not born in 2026. The code containing it arrived with the \`nf\_conntrack\` subsystem itself in Linux 2.6.15, released in late 2005, and has traveled with the kernel ever since. That no one detected it earlier does not mean it did not exist, but rather that it required an uncommon combination of fragments, long headers and a firewall that trusted conntrack.

The story fits a familiar pattern: the longest-lasting flaws tend to be on the path no one rewrites, in code that works well enough to receive no attention. Netfilter receives patches regularly, though the reassembly logic is a corner that is only touched when something breaks. This time the arithmetic broke.

One question remains open for the coming days. Debian will publish the backport for bookworm and trixie, and then it will become clear how many servers actually reboot. The answer will say more about the operational hygiene of the infrastructure than about the flaw, because the vulnerable code has been there for twenty years and the patch has been available for less than a week.
