A 21-year-old Netfilter flaw (CVE-2026-139281, CVSS 9.1) lets attackers bypass firewalls with crafted IPv6 packets. How to protect.
What happened
At the end of November 2026, the Linux kernel security team published CVE-2026-139281 — a vulnerability that had been hiding in the Netfilter subsystem's code for almost 21 years. It allows a remote attacker to send specially crafted fragmented IPv6 packets so that they slip past stateful firewall rules and reach services those rules were meant to block.
Red Hat rates the severity as Critical — 9.1 out of 10 on the CVSS 3.1 scale. Exploitation requires no credentials, no privileges, and no user interaction. The only condition is network reachability to the victim over IPv6.
To understand why this is so dangerous, it helps to recall how a stateful firewall works. Unlike a simple list of rules, it tracks the state of every connection through the conntrack subsystem: who is talking to whom, which ports are in use, whether a packet is part of an already established session. Rules like "allow replies to outgoing requests" or "block everything except port 53" rely on these records. If that record can be fooled, the entire perimeter is bypassed.
The flaw was found by French researcher Jérémy Jean, Deputy Head of the Cryptography Lab at ANSSI — France's National Agency for Information Systems Security. The fix to the kernel's mainline branch was committed by Netfilter maintainer Pablo Neira Ayuso.
Where the bug hides
The flaw lives in the file net/ipv6/netfilter/nf_conntrack_reasm.c — the code that reassembles fragmented IPv6 packets before the connection-tracking (conntrack) subsystem and the firewall see them.
The function find_prev_fhdr() looks for the Next Header field that points to the Fragment Header, and returns its position through a pointer to an int variable. But the function stores this value in a local variable of type u8 — an 8-bit type that can only hold numbers from 0 to 255.
This is a classic integer truncation bug. An IPv6 packet can carry a whole chain of extension headers between the main header and the transport header, and a fragmented packet contains the Fragment Header somewhere in that chain. If the chain is long enough to push the position of the field past byte 255, the stored value "wraps around" and becomes a small number. When reassembly finishes, the kernel writes the Next Header value at the wrong position — overwriting another byte in the header chain.
Two fragments — two different ports
The consequence is clear from the example the kernel developers give in the fix commit. Imagine a packet made of two fragments. Because of the corrupted offset, conntrack "sees" traffic to UDP port 53 — the DNS port, which is almost always allowed. Meanwhile, the payload is actually delivered to UDP port 9999, where firewall rules had blocked traffic.
In other words: the firewall lets traffic through based on one record, while the kernel delivers the packet somewhere else. The attacker chooses both values — both the tuple that matches the allowed rules and the one the traffic actually reaches. The CVE record's notes state this exposes locally firewalled UDP and TCP listeners.
In practice the scenario looks like this: the attacker scans a host over IPv6, finds an open port that should have been closed by the firewall, and gains access to an internal service — for example, a database admin panel or an API. At the same time, in firewall logs this traffic may look like a legitimate DNS request, making the attack harder to detect.
An important nuance: the flaw bypasses only conntrack-based filtering. It does not break authentication — services with their own login will still check credentials. The CVE records also rule out a system crash or memory corruption outside the packet, which is why the availability component was not affected in the score.
Who is at risk
The flaw is present in every Linux kernel since version 2.6.15, released in January 2006. That means practically any Linux server with IPv6 enabled and a stateful firewall running has been carrying this vulnerability for about 21 years.
The scale of the problem is amplified by the ubiquity of IPv6. The protocol has long been enabled by default in most modern Linux distributions and in cloud providers (AWS, Google Cloud, Microsoft Azure), as well as in network devices and embedded systems. This means even organizations that consciously "don't use" IPv6 can be vulnerable — the stack runs in the background, while firewall rules are often configured only for IPv4.
The difference in vendor ratings is telling. Red Hat rates the flaw Critical (9.1), while Canonical (Ubuntu) rates it only Medium (6.9), arguing there is no impact on data confidentiality and limited impact on integrity. Debian 12 (Bookworm) and Debian 13 (Trixie) were officially marked vulnerable at the time of publication, and Canonical was still analyzing which Ubuntu versions need a patch.
Containerized and cloud environments deserve special attention. The vulnerability lives in the host kernel, so containers sharing the kernel are only as protected as the host itself. Updating a container image won't help — you must patch the kernel of the node on which those containers run.
Whether the bug is being exploited in the wild has not yet been officially confirmed. But the technical details have been public since August 22, 2026, when Jérémy Jean sent the fix to the Linux kernel mailing list. So attackers had several months to study the mechanism before the official CVE record appeared.
Disclosure timeline
The history of this flaw is also interesting for its timeline. Jérémy Jean sent the patch with a detailed technical description to the public Linux kernel mailing list back on August 22, 2026 — meaning the attack mechanism became known to anyone interested months before official identification. The fix entered the mainline branch on October 19, but the kernel security team published the CVE record only on November 30.
Such a gap between the patch publication and the CVE release is common practice in the kernel ecosystem: code is fixed immediately, while classification and severity assessment are finalized later. For administrators this carries an important lesson: if you track kernel updates regularly, you could have received protection even before the vulnerability made headlines.
Which versions are fixed
The fix turned out to be a one-liner: it was enough to change the variable type from u8 to int so that the Next Header field position is stored without truncation. The patch entered the mainline branch on October 19, and on November 30 the kernel security team published the official CVE record.
Fixed versions of the stable kernel branches:
- 5.10.275 (5.10 branch)
- 5.15.226 (5.15 branch)
- 6.1.193 (6.1 branch)
- 6.6.163 (6.6 branch)
- 6.12.119 (6.12 branch)
- 6.18.65 (6.18 branch)
- 7.3.6 (7.3 stable branch)
- 7.4-rc1 (mainline)
Red Hat released update RHSA-2026:107608 on December 3, 2026 for the standard RHEL 8 kernel (version 4.18.0-553.193.1.el8_10). Note that a kernel update only takes effect after a server reboot.
How to protect yourself now
If you haven't updated the kernel yet, act in this order:
- Check the kernel version. The uname -r command shows the current version. Compare it with the list of fixed branches above.
- Update the system. Run a standard package update (apt upgrade, dnf update, etc.) and be sure to reboot the server so the new kernel takes effect.
- Temporary mitigation — disable IPv6. If the service doesn't need IPv6, disable it. Red Hat explicitly recommends this step as a mitigation until the patch is installed.
- A narrower alternative — drop fragments. Thanks to the order of Netfilter hooks, you can add a rule that drops fragmented IPv6 packets before conntrack reassembles them. This works, but can affect legitimate traffic, so apply it only on exposed hosts and temporarily.
After updating, double-check that the host has no open ports that should have been closed, and that firewall rules apply correctly. You can confirm IPv6 is really disabled with the command ip -6 addr — if it shows no addresses, the stack is off. To check open ports from the outside, use an external scanner like nmap run from another host: it will show which services are actually reachable from the network.
One last note on a common mistake. Many administrators configure firewall rules only for IPv4 and forget about IPv6, even though both stacks are usually enabled at the same time. While the vulnerability is being fixed, make sure your firewall policy is equally strict for both protocols, not just IPv4.
Why it matters
This case is a reminder that even fundamental, decades-tested code can hide critical bugs. A one-line fix removes a problem that has existed since 2006, but its very longevity means a huge number of systems worldwide are vulnerable — from cloud servers to embedded devices.
For Ukrainian teams it is especially important to keep Linux infrastructure under control, since a significant part of government and commercial services runs on it. Perimeter-bypassing vulnerabilities are dangerous because they give an attacker access to internal services — databases, admin panels, APIs — that were deliberately left "behind the firewall."
This incident also illustrates the principle of defense in depth. A firewall should never have been the only line of defense: services exposed to the network must have their own authentication, encryption, and monitoring, and access to internal systems should be limited not only by packet-filter rules but also by the principle of least privilege. CVE-2026-139281 shows exactly why you cannot rely on a single layer of defense.
The story of CVE-2026-139281 is also an argument for regular auditing of old code. A single-letter type error in a variable lived for two decades before an attentive researcher noticed it. It is a reminder that hidden vulnerabilities can exist in open source for years, and that investment in code review pays off.
The main practical takeaway is simple: don't delay the kernel update. Check the version, apply the patch, and reboot the server. To dig deeper into how such vulnerabilities work and how to build network-level defense, check out our cybersecurity materials.