Linux IPv6 firewall bypass flaw CVE-2026-139281 graphic showing a packet slipping past a firewall barrier

Linux IPv6 Firewall Bypass Flaw Is 21 Years Old: Fixed Kernels, Lagging Distros and What to Check Now

A Linux IPv6 firewall bypass bug, tracked as CVE-2026-139281, lets a remote attacker slip packets past firewall rules on any kernel that handles IPv6 with connection tracking turned on. The flaw has been in the kernel since January 2006, and Red Hat rates it 9.1 out of 10. Fixed kernels exist upstream, but several big distributions were still catching up on December 4.

Here are the facts worth having before you read the rest.

  • CVE-2026-139281, rated Critical (CVSS 9.1) by Red Hat
  • Affects Linux kernels from 2.6.15 (January 2006) onward that use Netfilter connection tracking with IPv6
  • No authentication or user interaction needed, but the attacker must get fragmented IPv6 traffic to your host
  • Upstream fixes landed in kernels 5.10.275, 5.15.226, 6.1.193, 6.12.119, 6.18.65 and 7.3.6
  • No public exploit and no confirmed attacks in the wild have been reported so far

That last point is the reason to patch this week rather than panic today.

How a one-byte mistake lets IPv6 packets dodge your firewall

The bug sits in a kernel function called find_prev_fhdr(), which helps connection tracking work out where an IPv6 packet’s real payload starts. According to CSO Online, the function stores that offset in an 8-bit variable. When a chain of IPv6 extension headers pushes the offset past 255 bytes, the number wraps around and points at the wrong spot.

The result is a mismatch. The connection tracker believes a packet is headed for one destination while the kernel delivers it to another. The example in the write-ups is UDP traffic that looks like harmless port 53 (DNS) to your firewall but actually lands on a service listening on port 9999.

The upstream fix is tiny: the offset variable changes from u8 to int. Technical details have been public since the patch hit the kernel mailing list on August 22, according to GazeWire, so anyone motivated could work out an attack.

Which Linux systems are actually exposed?

You need all three of these conditions: IPv6 is enabled, Netfilter connection tracking is active, and your firewall policy leans on that tracking to decide what traffic gets through. Per Aviatrix, systems with IPv6 and conntrack enabled are potentially vulnerable. A server whose local firewall is the only thing protecting a sensitive service is the worst case.

Hosts sitting behind a separate network firewall or cloud security group have a second layer, which cuts the risk. Machines with IPv6 fully disabled are not reachable this way at all.

Neither the CSO piece nor the GazeWire report says whether iptables, nftables or both are affected, and the sources I found don’t settle it. Treat any firewall built on Netfilter as in scope until your distribution says otherwise.

Fixed kernels and where your distro stands

Upstream, the fix is in mainline kernel 7.4-rc1 and in stable branches. Distributions are the slower part, and the picture changed between sources, so check your vendor’s tracker before trusting any table, including this one.

Source Status on December 4
Upstream stable kernels Fixed in 5.10.275, 5.15.226, 6.1.193, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1. Aviatrix also lists 6.6.163; CSO names no fixed 6.6 release.
Debian Bookworm (12) and Trixie (13) still flagged as vulnerable. Fixed in unstable and Forky with kernel 7.3.6-1.
Red Hat / AlmaLinux GazeWire reports a kernel erratum for RHEL 8 and a matching AlmaLinux update. Other RHEL versions are still under evaluation.
Ubuntu Affected releases still being evaluated, with no fix versions published. GazeWire says Ubuntu rates it Medium priority.

Notice the gap in severity: Red Hat calls this Critical while Ubuntu reportedly calls it Medium. Both can be defensible, because the score assumes the worst case and your real exposure depends on your setup.

How to check your own machine and what to do about it

Start with the kernel version and whether IPv6 and connection tracking are even in play. These three commands cover it:

  • uname -r shows your running kernel, which you compare against the fixed versions above and your distro advisory
  • sysctl net.ipv6.conf.all.disable_ipv6 returns 0 if IPv6 is on
  • lsmod | grep nf_conntrack shows whether connection tracking is loaded

If all three point to exposure, install your distro’s kernel update the moment it ships and reboot, since a kernel patch does nothing until the new kernel runs. Where no update exists yet, Red Hat’s advice is to disable IPv6 on systems that don’t need it. That knocks out all IPv6 connectivity, so don’t do it on a box you rely on for IPv6 traffic.

Aviatrix also suggests firewall rules that don’t rest only on connection-tracking state, plus network segmentation and egress controls. That is vendor guidance, not an official fix, but it is sensible defense in depth either way. If you patched the recent NFS2ROOT kernel flaw, the same patch window can cover this one, and our Chrome 158 security update guide is a reminder that December is a busy month for urgent fixes.

Frequently Asked Questions

Is the Linux IPv6 firewall bypass being exploited right now?

No confirmed attacks have been reported, and the CVE entry lists no public exploit. Aviatrix argues public disclosure makes attempts likely soon, but that is the author’s inference, not an observed fact.

Do I need to disable IPv6 on my server?

Only if you can’t patch yet and don’t depend on IPv6. It is a stopgap Red Hat recommends, and it breaks all IPv6 connectivity. Installing a fixed kernel is the real answer.

Does this affect Android phones or Windows PCs?

The reporting covers the Linux kernel only. Android runs a Linux kernel, but none of the sources I read say Android devices are affected, so don’t assume either way until Google says so.

Why did a bug survive for 21 years?

The wraparound only triggers with unusually long IPv6 extension-header chains, which normal traffic rarely produces. Small integer-type errors like this can sit unnoticed until someone crafts packets that hit the edge case.

Our take

If you run Linux servers on the open internet with IPv6 on and a host firewall as your main defense, put the kernel update on this week’s list and verify it with uname -r after the reboot. If you sit behind a cloud security group or a network firewall, you have breathing room, but don’t let it slide to next quarter. For a home desktop that never exposes services, a normal update cycle is plenty.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *