A bug that has sat in the Linux kernel's IPv6 firewall code since 2005 lets a remote attacker with no login send fragmented IPv6 packets that the firewall classifies as one kind of traffic while the system delivers them as another. It is tracked as CVE-2026-139281. The Linux kernel's CVE team and Red Hat both rate it 9.1 out of 10 (CVSS 3.1), and Red Hat's advisory says malicious traffic "may bypass firewall rules and reach restricted services." The CVE record was published on November 30.
Why it matters: a huge share of Linux servers, routers and container hosts rely on netfilter's connection tracking ("conntrack") for stateful rules such as "allow established traffic, drop everything else" on IPv6. This flaw undermines that model without crashing anything, so nothing in the logs would obviously look wrong. The Hacker News reports no confirmed attacks so far, and the bug is not in CISA's Known Exploited Vulnerabilities list, according to the CVE record on OpenCVE and CIRCL.
What goes wrong
When conntrack reassembles a fragmented IPv6 packet, it walks the chain of extension headers to find the byte that names the next protocol. According to the CVE description and The Cyber Security Guru's analysis of the patch, the kernel kept that position in an 8-bit variable, which can only count to 255. An attacker who sends a long enough chain of extension headers pushes the offset past 255; it wraps around, and the kernel rewrites the wrong byte.
The result is that conntrack records a different transport protocol and port from the one the network stack actually delivers to. The Hacker News gives the example of traffic logged as UDP port 53 (DNS) but handed to a service on UDP port 9999. There is no memory corruption or code execution; the damage is that firewall decisions are made on the wrong information.
We checked the fix ourselves. In the Linux stable tree, the function find_prev_fhdr() in net/ipv6/netfilter/nf_conntrack_reasm.c declares prev_nhoff as u8 in 6.12.118 (tagged November 17) and as int in 6.12.119 (tagged November 23). That one-word change is the fix.
Where it came from
- Introduced: commit 9fb9cbb1082d by Yasuyuki Kozakai in November 2005, first shipped in Linux 2.6.15 in January 2006 — hence "21 years," per The Hacker News and The Cyber Security Guru.
- Found and fixed by: Jérémy Jean, who wrote the patch; it was applied by netfilter maintainer Pablo Neira Ayuso. The Hacker News notes the patch carries an "Assisted-by: Codex:gpt-5" trailer, without saying what the AI did.
- Mainline: commit 48d522b65fb0, in Linux 7.4-rc1 (November 1).
Fixed versions
| Kernel branch | First fixed release (per the CVE record) |
|---|---|
| 5.10 | 5.10.275 |
| 5.15 | 5.15.226 |
| 6.1 | 6.1.193 |
| 6.6 | 6.6.163 |
| 6.12 | 6.12.119 |
| 6.18 | 6.18.65 |
| 7.3 | 7.3.6 |
| mainline | 7.4-rc1 |
Note that 5.10 and 5.15 have just reached end of life; their final releases include this fix, but nothing after them will.
Distribution status (as reported Dec 3–4)
- Red Hat: RHSA-2026:107608 fixes RHEL 8, and AlmaLinux shipped a matching ALSA-2026:107608 (fixed kernel 4.18.0-553.193.1.el8_10, per the CIRCL record). The Cyber Security Guru reports RHEL 9, 10, kernel-rt and RHCOS as still affected with fixes pending.
- Debian: bookworm and trixie listed as vulnerable; their security kernels (6.1.192 and 6.12.118 builds) are one release short of the fix, per The Cyber Security Guru. Unstable (sid) and forky have 7.3.6.
- Ubuntu: still evaluating, and scores the bug much lower — CVSS 4.0 6.9, Medium — according to The Cyber Security Guru.
The gap in scores reflects a judgement call: the kernel CNA and Red Hat assume the bypass exposes protected services fully, while Ubuntu rates the impact as limited integrity loss.
What to do
- Check your kernel: run
uname -rand compare it with the table, or with your distribution's advisory for CVE-2026-139281. - Update when your vendor ships a fix, then reboot:
sudo dnf update kernelon RHEL-family systems,sudo apt update && sudo apt full-upgradeon Debian and Ubuntu. - If you can't patch yet and don't use IPv6, Red Hat's suggested mitigation is to disable IPv6 (its knowledge-base article 8709 explains how). Red Hat warns this cuts off all IPv6 connectivity.
- Firewall and router operators can also consider filtering IPv6 fragments at the network edge, which The Cyber Security Guru suggests. Test first: some legitimate IPv6 traffic depends on fragments.
- Prioritise Linux boxes that act as IPv6 firewalls or routers, and internet-facing hosts that rely on host firewall rules to hide internal services.
Sources
- Linux stable tree (GitHub mirror) — tag v6.12.119 github.com
- Linux stable tree (GitHub mirror) — tag v6.12.118 github.com
- Red Hat Customer Portal — CVE-2026-139281 access.redhat.com
- The Hacker News — Critical 21-Year-Old Linux Kernel Flaw Lets Attackers Bypass Firewalls with Crafted IPv6 Packets thehackernews.com
- The Cyber Security Guru — CVE-2026-139281: 21-Year Linux IPv6 Firewall Bypass Explained thecybersecguru.com
- CIRCL Vulnerability-Lookup — CVE-2026-139281 cve.circl.lu