Linux fixes decades-old IPv6 flaw that can bypass stateful firewalls

Linux fixes decades-old IPv6 flaw that can bypass stateful firewalls

Remote attackers can exploit a Linux kernel flaw to reach services blocked by stateful firewall rules. The bug affects Netfilter connection tracking code dating to January 2006, making it almost 21 years old.

Tracked as CVE-2026-139281, the flaw requires neither credentials nor user interaction. Exploitation depends on fragmented IPv6 packets reaching a vulnerable kernel.

Red Hat rates the vulnerability Critical, with a score of 9.1 out of 10. No exploitation had been confirmed in public sources at publication.

The greatest risk concerns hosts whose local firewall is the sole barrier protecting a sensitive service. An attacker could make traffic appear acceptable to connection-based filtering while sending its payload to a blocked port.

How the firewall bypass works

Netfilter handles packet filtering within Linux. Its conntrack component records connections, allowing iptables and nftables rules to make decisions based on connection state.

The flaw lies in net/ipv6/netfilter/nf_conntrack_reasm.c, which rebuilds fragmented IPv6 packets. A variable used to locate a header field cannot store a value above 255.

With enough IPv6 extension headers, the field's position exceeds that limit. The stored value then wraps around, directing a reassembly write to the wrong packet byte.

This can leave conntrack recording one destination while the kernel delivers the packet to another.

The example accompanying the fix uses a packet split into two fragments. Conntrack identifies its destination as UDP port 53, used for DNS, but the payload reaches UDP port 9999.

Rules relying on that connection record can therefore allow traffic intended for a blocked service.

Fixed kernels and distribution status

Updates for maintained stable kernel branches began arriving last week. The CVE's affected ranges identify these as the first fixed releases:

Kernel branchFirst fixed release
5.105.10.275
5.155.15.226
6.16.1.193
6.66.6.163
6.126.12.119
6.186.18.65
7.37.3.6
Mainline7.4-rc1

Availability through Linux distributions remains uneven.

Debian's tracker still lists bookworm and trixie as vulnerable, including their security-channel kernels. Its development branches already include the corrected 7.3.6 kernel.

Ubuntu assigns Medium priority and lists standard kernel packages across supported releases as needing evaluation.

Red Hat has shipped a kernel erratum for Red Hat Enterprise Linux 8. AlmaLinux has also published the corresponding update.

For systems awaiting updates, Red Hat suggests turning off IPv6 if it is not needed. Neither Debian nor Ubuntu lists a workaround.

Public patch preceded the CVE record

The vulnerable code arrived with the conntrack subsystem in Linux 2.6.15 in January 2006.

Jérémy Jean, who wrote the fix, made the technical details public in an August 22 Linux kernel mailing-list submission. The patch was merged upstream on October 19.

The one-line correction subsequently appeared in mainline Linux 7.4-rc1 on November 1. The CVE record followed this week, more than three months after the patch became public.

The patch includes the credit “Assisted-by: Codex:gpt-5”. Neither the submission nor the upstream commit explains whether that assistance involved discovery, writing the correction, or checking it.

Source: thehackernews.com

Got Something To Say?

Your email address will not be published.