Linux kernel bug from 2006 lets crafted IPv6 fragments slip past firewall rules (CVE-2026-139281)


On this page
If your Linux firewall relies on stateful rules to block IPv6 traffic, a flaw fixed in the kernel this week could let an attacker get packets through to services you think are blocked. No login or user action is needed, only crafted IPv6 fragments.
The bug, CVE-2026-139281, sits in Netfilter’s code for reassembling IPv6 fragments for connection tracking. It has been there since the connection tracking subsystem arrived in Linux 2.6.15, released in January 2006. The kernel’s CVE team published it on 30 November with a CVSS 3.1 score of 9.1, and Red Hat rates it Critical. No attacks or public exploit code have been reported.
One byte too small
When fragments arrive, the kernel walks the chain of IPv6 extension headers to find the field just before the Fragment header, and notes its position. It kept that position in a variable that holds only values from 0 to 255. An attacker who adds enough extension headers can push the field past byte 255, so the stored position wraps round to a small number.
When the kernel puts the packet back together, it writes a byte at that wrong position. That changes how the header chain reads. Connection tracking, and the firewall rules that depend on it, then see one transport header, while the kernel’s normal IPv6 input path delivers the packet using another.
The kernel’s own fix gives an example. A two-fragment packet can be recorded as going to UDP port 53, which a firewall might allow for DNS, while its payload reaches UDP port 9999 on the same host. According to the CVE record, the attacker chooses both values and the result doesn’t depend on timing. It describes the impact as a wrong firewall verdict for traffic to the host itself: the attacker can reach local services that the rules were meant to block. It doesn’t corrupt memory outside the packet or crash the kernel.
It only matters on systems that use IPv6 connection tracking, which is what stateful IPv6 rules in nftables or ip6tables rely on. If you don’t filter IPv6 with stateful rules, the firewall bypass doesn’t apply.
The fix changes one line, so the variable can hold the full offset. It was written by Jérémy Jean, from an address at cyber.gouv.fr, the domain of France’s national cybersecurity agency, ANSSI. The commit carries an “Assisted-by” tag naming OpenAI’s Codex.
Who has a fix
Upstream, the fix is in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 and 7.3.6, and in mainline from 7.4-rc1.
Distributions are moving at different speeds:
- Red Hat fixed RHEL 8 on 3 December in RHSA-2026:107608, and has fixes out for RHEL 6 Extended Lifecycle Support and RHEL 8.6 Extended Update Support. RHEL 9 and RHEL 10, along with OpenShift’s CoreOS images, are still listed as affected.
- AlmaLinux shipped the matching RHEL 8 update as ALSA-2026:107608. There’s no AlmaLinux 9 or 10 update yet.
- Debian’s tracker shows bookworm and trixie still vulnerable. Only forky and sid have the fix.
- Ubuntu rates it Medium priority and marks every supported release as needing a fix, with none released.
What to do
- Install a fixed kernel and reboot. Use your distribution’s update once it names CVE-2026-139281, or an upstream stable kernel at or above the versions listed. The fix doesn’t take effect until you reboot into the new kernel.
- If you can’t patch yet, consider turning IPv6 off where you don’t need it. Red Hat suggests this as a mitigation and explains how for RHEL. It cuts off all IPv6 on the machine, so only do it on systems that don’t use IPv6.
- Don’t rely on the host firewall alone for sensitive services. Until you’ve patched, make sure anything you’ve blocked with IPv6 rules is also protected another way, such as binding it to localhost or putting it behind a network firewall.
- On Debian, Ubuntu, RHEL 9 and RHEL 10, watch for kernel updates that name this CVE. Check the trackers linked above.