Linux IPv6 Firewall Bypass CVE-2026-139281: A 21-Year Bug

By 11 min read
CVE-2026-139281: crafted IPv6 fragments slipping past a Linux conntrack firewall rule

For twenty-one years, a Linux firewall rule that trusts connection tracking could be shown a different packet from the one the kernel actually delivered. The cause is a single variable declared one byte wide when it needed to hold numbers larger than 255.

CVE-2026-139281 is a Linux kernel flaw in netfilter connection tracking, present since Linux 2.6.15 (January 2006) and fixed in 7.3.6, 6.18.65, 6.12.119 and other stable kernels, that lets an unauthenticated attacker send crafted IPv6 fragments past stateful firewall rules. The kernel’s CVE team published it on 30 November 2026, and it reached mainstream security news on 3 December when BleepingComputer reported Red Hat’s critical 9.1 rating. Patch your kernels, and where you cannot, Red Hat says to disable IPv6.

What is CVE-2026-139281?

CVE-2026-139281 is an integer truncation bug in net/ipv6/netfilter/nf_conntrack_reasm.c, the part of the Linux kernel that reassembles fragmented IPv6 packets so that connection tracking can inspect them. Integer truncation means a value is stored in a variable too small to hold it, so the high bits are silently dropped.

Connection tracking, usually shortened to conntrack, is the netfilter component that remembers which flows a host has seen. Rules such as “allow established connections” or “allow new UDP to port 53 only” in iptables and nftables depend on it. If conntrack misreads a packet, every rule built on its view is judging the wrong thing.

Key facts at a glance

Item Detail
CVE CVE-2026-139281
Component Linux kernel netfilter, IPv6 conntrack reassembly
File and function nf_conntrack_reasm.c, find_prev_fhdr()
Bug class Incorrect conversion between numeric types (CWE-681, per Red Hat)
Introduced Commit 9fb9cbb1082d, 10 November 2005, first in Linux 2.6.15
Fixed upstream 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
CVE published 30 November 2026 by the Linux kernel CNA
Severity CVSS 3.1 9.1 (CVE record, Red Hat); CVSS 4.0 6.9 (Ubuntu)
Attacker needs Ability to send IPv6 packets to the host; no credentials
Exploited in the wild None reported; not in CISA KEV as of 3 December 2026
Four headline numbers for CVE-2026-139281: 21 years old, CVSS 9.1, 255 byte limit, no login needed.
An old bug, a critical score and no authentication: the reason this flaw drew attention. Data: CVE record, Red Hat, kernel git history.

When was CVE-2026-139281 disclosed?

The CVE record shows it was reserved and published by the Linux kernel’s CVE numbering authority on 30 November 2026. Ubuntu’s page carries the same publication date. BleepingComputer first covered it on 3 December 2026, the same day Red Hat’s critical rating drew attention.

The fix itself is older than the CVE. Jeremy Jean posted the one-line patch to the netdev mailing list on 22 August 2026, addressed to netfilter maintainers Pablo Neira Ayuso and Florian Westphal. The patch email describes the bug in technical terms but does not call it a security issue. Kernel git history shows the commit was merged on 19 October 2026, and the CVE followed six weeks later.

That gap is normal for the kernel. Its CVE team assigns identifiers to fixes after they land, so the patch is often public long before anyone labels it a vulnerability. For defenders, the practical clock started on 30 November.

How does the IPv6 firewall bypass work?

The kernel fix commit, 48d522b65fb0, explains the mechanism in a few lines. This section walks through it at a conceptual level, without packet layouts.

IPv6 extension headers and fragments

An IPv6 packet can carry a chain of extension headers between the main header and the transport header (TCP or UDP). Each header has a Next Header field naming what comes after it. When a packet is fragmented, a Fragment header joins that chain, and the receiver must reassemble the pieces before it can read the TCP or UDP ports.

Conntrack does its own reassembly so it can classify the full packet. During that step, the function find_prev_fhdr() finds the Next Header field that sits just before the Fragment header and records where it is, so reassembly can later rewrite it.

The one-byte mistake

find_prev_fhdr() returns that position through an int pointer, but the caller stored it in a local variable of type u8, which can only hold values from 0 to 255. With a long enough chain of extension headers, the Next Header field sits beyond byte 255. The value wraps around, and the wrong position is saved.

Later, reassembly uses the wrapped position to update the Next Header field. It overwrites a different byte in the header chain instead. From then on, conntrack and the normal IPv6 delivery path disagree about what the packet is.

Two views of one packet

The commit gives a concrete example: a two-fragment packet that conntrack records as UDP destination port 53 while the payload is delivered to UDP port 9999. A rule that allows DNS but blocks everything else sees DNS. The service on port 9999 receives the data anyway.

Six-step flow showing how a truncated IPv6 header offset makes conntrack and delivery see different ports.
The bypass comes from conntrack and IPv6 delivery reading two different transport headers from the same packet. Data: kernel fix commit 48d522b65fb0.

The fix changes the local variable from u8 to int, matching the other offset variables in that code path. It is a one-line diff.

Who found it, and where does AI come in?

The patch was written by Jeremy Jean, sent from a cyber.gouv.fr address. BleepingComputer identifies him as deputy head of the cryptography lab at ANSSI, France’s national cybersecurity agency. He is also the ANSSI researcher credited with an early fix for NFS2ROOT, covered in our NFS2ROOT CVE-2026-99362 breakdown.

The commit carries the tag Assisted-by: Codex:gpt-5, the kernel convention for disclosing AI help. The sources do not say how much of the discovery the model did, only that it assisted. It joins a run of 2026 kernel bugs found with machine help, a trend we tracked in how AI is turning patches into exploits.

Timeline

Date Event Source
10 Nov 2005 nf_conntrack subsystem added (commit 9fb9cbb1082d) Kernel git
Jan 2006 First released in Linux 2.6.15 CVE record via BleepingComputer
22 Aug 2026 Fix posted to netdev by Jeremy Jean Openwall netdev archive
19 Oct 2026 Fix committed upstream Kernel git
30 Nov 2026 CVE-2026-139281 published by the kernel CNA CVE record, Ubuntu
3 Dec 2026 Red Hat rates it critical, news coverage begins Red Hat, BleepingComputer
Timeline from the 2005 nf_conntrack commit to the November 2026 CVE and Red Hat rating.
The fix was public for over three months before it received a CVE. Data: kernel git, openwall netdev, CVE record, BleepingComputer.

Who is affected by CVE-2026-139281?

Any Linux system running a kernel from 2.6.15 up to the fixed stable releases is technically vulnerable. Real exposure needs three conditions together.

  1. IPv6 reaches the host. The attack uses IPv6 fragments. Hosts with IPv6 disabled, or behind equipment that drops IPv6, are not reachable through this path.
  2. IPv6 conntrack is in use. The CyberSec Guru analysis notes the bug only matters when the nf_defrag_ipv6 module is active, which happens when IPv6 rules use connection tracking.
  3. A stateful rule protects something. The impact is a service that the firewall was meant to hide becoming reachable. If nothing sensitive listens behind the rule, there is nothing to reach.

The commit describes the mismatch in terms of IPv6 local delivery, meaning packets addressed to the host itself. Cloud VMs, bastion hosts and servers that rely on a host firewall to hide admin ports are the clearest examples.

Distribution status on 3 December 2026

Distribution Rating Status
Red Hat Critical, CVSS 3.1 9.1 Mitigation published; The CyberSec Guru reports an RHEL 8 fix (RHSA-2026:107608) and RHEL 9 and 10 still affected
Ubuntu Medium, CVSS 4.0 6.9 All supported releases from 16.04 to 26.10 listed as vulnerable, no fixed packages yet
Debian Not rated on tracker Bookworm (6.1.192-3) and Trixie (6.12.118-1) vulnerable; Forky 7.3.6-1 and Sid 7.3.7-1 fixed

How to check your exposure

  • Compare uname -r with your distribution’s advisory, not only with upstream version numbers, since vendors backport fixes under their own numbering.
  • Check whether nf_defrag_ipv6 is loaded with lsmod.
  • List IPv6 rules that use connection state (ct state in nftables, -m conntrack or -m state in ip6tables).
  • Confirm whether the host has a routable IPv6 address that untrusted networks can reach.

Why do the severity scores differ?

The CVE record and Red Hat use CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, which scores 9.1. That treats a firewall bypass as a path to high confidentiality and integrity impact. Ubuntu’s CVSS 4.0 assessment rates confidentiality impact as none and integrity as low, for 6.9 and a medium priority.

Both views are defensible. The bug itself only changes which rule a packet matches. The real damage depends on what sits behind that rule. A host that exposes a database port only through a stateful rule faces something close to Red Hat’s score, while a host with nothing hidden faces close to Ubuntu’s.

Bar chart comparing CVE-2026-139281 scores from the kernel CNA, Red Hat and Ubuntu.
Vendors disagree on severity because impact depends on what the bypassed rule was protecting. Data: CVE record, Red Hat, Ubuntu.

How do you detect exploitation attempts?

No public indicators of compromise exist, because no exploitation has been reported. Detection has to focus on the unusual traffic the bug needs.

Network signals

  • IPv6 fragments with long extension-header chains. Legitimate traffic rarely carries header chains long enough to push a field past byte 255. A network IDS or packet capture that counts total extension-header length in first fragments can flag them.
  • Small fragmented UDP or TCP to hosts that normally get none. Most modern IPv6 applications avoid fragmentation. Fragmented packets to servers are worth sampling.
  • Fragments whose first piece carries the whole header chain plus a destination option. RFC 8200 requires the first fragment to hold the full chain, so that is where the oversized chain will appear.

Host signals

  • Connections to services that your firewall policy says should be unreachable over IPv6. Compare application access logs with the source addresses your rules allow.
  • Mismatches between conntrack entries (conntrack -L -f ipv6) and listening sockets in use. A flow tracked as port 53 while a different service logs a new IPv6 client is the signature of this bug.

ATT&CK mapping

The sources do not publish ATT&CK mappings. The closest techniques for defenders building detections are T1599 (Network Boundary Bridging) for the bypass and T1190 (Exploit Public-Facing Application) for whatever an attacker reaches next.

How to mitigate CVE-2026-139281

  1. Install fixed kernels and reboot. Upstream fixes are in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 and 7.3.6. Use your vendor’s package, then confirm the running kernel changed.
  2. Disable IPv6 where you do not need it. Red Hat’s stated mitigation is to turn IPv6 off, and it warns this removes all IPv6 connectivity on the host.
  3. Drop IPv6 fragments at the edge where you can. The CyberSec Guru lists this as a workaround. Test first, because some protocols, such as large DNS responses, may rely on fragmentation.
  4. Stop relying on one stateful rule. Bind admin services to loopback or a management interface, and require authentication on anything a firewall rule hides.
  5. Prioritise internet-facing hosts with IPv6 addresses. Cloud instances with public IPv6 and hosts that use the firewall to hide internal services come first.

How does it compare to other recent Linux kernel bugs?

  CVE-2026-139281 NFS2ROOT (CVE-2026-99362)
Component netfilter IPv6 conntrack nfsd NFSv4.1 sessions
Bug age 21 years (2005) 12 years (2014)
Impact Firewall rule bypass Kernel heap overflow, possible root
Precondition IPv6 conntrack rules in use nfsd with NFSv4.1 or 4.2
Score 9.1 (CNA, Red Hat), 6.9 (Ubuntu) 9.8 (CNA, Ubuntu), 9.4 (Red Hat)
ANSSI’s Jeremy Jean involved Yes, wrote the fix Yes, sent an early fix

NFS2ROOT is the more dangerous bug on hosts that run an NFS server, since it can give root. CVE-2026-139281 is broader but shallower: it touches far more machines and gives the attacker access, not control. Both show how much decades-old kernel code is now being re-read, often with AI help. For a local-access counterpart, see our USB2Shell CVE-2026-98232 explainer.

It is not magic: the limits of this bug

  • It only changes rule matching. An attacker reaches a service they should not see, but still has to attack that service. Strong authentication on that service still stops them.
  • It needs IPv6 end to end. Many networks still filter or do not route IPv6 to servers.
  • It needs IPv6 conntrack. Hosts with no stateful IPv6 rules have nothing to bypass.
  • Stateless filtering in front still works. A network firewall that drops traffic to the hidden port by address and port, without trusting the host’s conntrack, is unaffected by this kernel bug.

Open questions

  • Forwarded traffic. The commit speaks of local delivery. None of the sources say whether Linux routers and firewalls that forward IPv6 traffic for other hosts can be bypassed the same way.
  • Discovery process. The Assisted-by tag confirms AI help but not its extent, or whether other bugs came from the same review.
  • Distribution timing. Ubuntu and parts of Red Hat had no fixed packages on 3 December, and the CVE-to-patch gap for those users is still open.
  • Public trigger code. No proof-of-concept had been published in the sources reviewed, but the commit message describes the trigger clearly.

The bottom line

CVE-2026-139281 lets crafted IPv6 fragments reach services that a Linux stateful firewall rule was supposed to hide, and it has done so since 2006. It does not give code execution, but it removes a layer many servers lean on. Patch kernels on hosts with reachable IPv6 first, and if a patch is not yet available, disable IPv6 or make sure the hidden services do not depend on the firewall alone.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is CVE-2026-139281?

CVE-2026-139281 is a Linux kernel vulnerability in netfilter's IPv6 connection tracking. A header offset is stored in an 8-bit variable and wraps past 255, so a crafted fragmented IPv6 packet can be tracked as one port while it is delivered to another, which lets it get past stateful firewall rules.

Which Linux kernel versions are affected by CVE-2026-139281?

The CVE record lists every kernel since the nf_conntrack subsystem was added in commit 9fb9cbb1082d, which shipped in Linux 2.6.15 in January 2006, up to the fixed stable releases 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.

Is CVE-2026-139281 exploited in the wild?

No exploitation has been reported in the sources reviewed, and the CVE was not in CISA's Known Exploited Vulnerabilities catalog as of its 3 December 2026 release. The kernel fix commit does describe the bug precisely, so a working trigger is not hard to derive.

Why does Red Hat rate CVE-2026-139281 9.1 but Ubuntu only 6.9?

Red Hat and the CVE record use a CVSS 3.1 vector with high confidentiality and integrity impact, giving 9.1. Ubuntu uses CVSS 4.0 and judges there is no confidentiality impact and only limited integrity impact, which gives 6.9 and a medium priority.

Does CVE-2026-139281 allow remote code execution?

No. The bug corrupts how conntrack reads a packet's headers, so the impact is that traffic reaches services a stateful firewall rule should have blocked. Sources do not describe a crash or code execution.

How do I mitigate CVE-2026-139281 if I cannot patch yet?

Red Hat's stated mitigation is to disable IPv6 on systems that do not need it. Other options are to drop IPv6 fragments at the network edge where your traffic allows it, and to make sure exposed services do not depend on a host firewall alone.

Who found CVE-2026-139281?

The fix was written by Jeremy Jean, whom BleepingComputer identifies as deputy head of the cryptography lab at ANSSI, France's national cybersecurity agency. His patch carries an Assisted-by tag naming Codex with gpt-5.

Am I affected if I do not use IPv6?

The attack needs IPv6 packets to reach the kernel's IPv6 conntrack code. A host with IPv6 disabled, or one whose IPv6 traffic never reaches it, has no path to the bug, which is why Red Hat lists disabling IPv6 as its mitigation.

Keep reading

CVE-2026-139281Linux kernelnetfilterIPv6firewall bypassconntrackvulnerability management