CVE-2026-139281: Linux Firewall Bypass via IPv6

A vulnerability that hid in the Linux kernel for more than 20 years has been found. It sits in netfilter’s connection tracking subsystem (conntrack), which nearly every Linux firewall relies on: nftables, iptables, firewalld, UFW, as well as Docker and Kubernetes network rules. Using specially crafted IPv6 fragments, an unauthenticated remote attacker can make the firewall treat a packet as allowed traffic and deliver it to a closed port.
The flaw was discovered by Jérémy Jean of ANSSI, the French national cybersecurity agency. Red Hat rates it critical, with a CVSS score of 9.1. Canonical gave it medium priority. Below we look at who is affected, how to check your server and what to do until a fixed kernel is available.
In short
| CVE | CVE-2026-139281 |
| Where | Linux kernel, netfilter, IPv6 fragment reassembly in conntrack (nf_conntrack_reasm.c) |
| Impact | bypass of IPv6 firewall rules |
| Authentication needed | no, network attack |
| Rating | Red Hat: critical, CVSS 9.1; Ubuntu: medium priority |
| Vulnerable kernels | since 2.6.15 (January 2006) |
| Fixed in | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 |
| Exploited in the wild | not reported at the time of writing |
How the vulnerability works
In IPv6, a large packet can be split into fragments. Before rules are checked, conntrack reassembles the fragments and records which connection the packet belongs to: protocol, addresses and ports. The firewall’s “accept or drop” decision relies heavily on that record.
During reassembly, the kernel remembers the position of the Next Header field, which says what follows the headers. The find_prev_fhdr() function calculates this position correctly but stores it in a one-byte variable. A chain of IPv6 extension headers can push the field beyond byte 255, and the value wraps around to zero. The kernel then writes a byte in the wrong place, and conntrack sees one port in the packet while the system delivers it to another.
The example from the fix description: a two-fragment packet is recorded by conntrack as UDP to port 53 (DNS), while its payload is delivered to UDP port 9999. If the firewall allows DNS, an attacker reaches a service on a port the rules keep closed.
The fix is a one-line change of the variable type to int. The patch was posted to the kernel developers’ mailing list in August, landed in mainline in 7.4-rc1, and the CVE was assigned on 30 November.
Which systems are affected
A server is at risk when all of these are true:
- The kernel is unpatched. The bug appeared in 2.6.15, so every kernel from 2006 up to the fixed versions is affected.
- IPv6 is in use: the server has a public IPv6 address, or one an attacker can reach.
- The firewall uses conntrack for IPv6. That is almost any firewall with “allow established connections” rules:
ct statein nftables,-m conntrackor-m statein ip6tables. firewalld, UFW (withIPV6=yes), Docker with IPv6 enabled and Kubernetes network plugins all work this way by default.
If IPv6 is disabled on the server, or it has no IPv6 address reachable from outside, a remote attack is not possible.
Distribution status
| Distribution | Status as of 4 December |
|---|---|
| Debian 12 bookworm, 13 trixie | vulnerable, no fixed packages yet |
| Debian forky, sid | fixed (7.3.6-1 and later) |
| Ubuntu, all supported releases | vulnerable, fix in progress |
| RHEL 8.10 | fixed, RHSA-2026:107608, kernel-4.18.0-553.193.1.el8_10 |
| RHEL 8.6 EUS/AUS | fixed, RHSA-2026:108619 |
| RHEL 6 ELS | fixed, RHSA-2026:107921 |
| RHEL 7, 9, 10 | vulnerable, no fix yet |
| AlmaLinux, Rocky Linux, Oracle Linux | follow RHEL; check your distribution’s advisories |
How to check whether your system is vulnerable
1. Kernel version and whether the fix is present
uname -r
Distributions backport fixes into their kernels without changing the main version number, so it is more reliable to search the installed package’s changelog for the CVE number or the fix title.
Debian and Ubuntu:
apt changelog linux-image-$(uname -r) 2>/dev/null | grep -m1 -E 'CVE-2026-139281|avoid truncating IPv6 nexthdr'
RHEL, AlmaLinux, Rocky Linux:
rpm -q --changelog kernel-$(uname -r) | grep -m1 -E 'CVE-2026-139281|avoid truncating IPv6 nexthdr'
If the command prints a line, the running kernel includes the fix. Empty output means it doesn’t. For kernels built from source and for distributions with fresh stable kernels (Arch, Fedora), compare the uname -r version with the table of fixed versions above.
2. Is IPv6 enabled
ip -6 addr show scope global
Empty output means there are no global IPv6 addresses. Also check whether IPv6 is fully disabled (a value of 1 means disabled):
sysctl net.ipv6.conf.all.disable_ipv6
3. Is conntrack used for IPv6
Are the connection tracking and IPv6 fragment reassembly modules loaded:
lsmod | grep -E 'nf_conntrack|nf_defrag_ipv6'
Do the firewall rules check connection state:
nft list ruleset 2>/dev/null | grep -cE 'ct (state|status)'
ip6tables-save 2>/dev/null | grep -cE 'conntrack|state'
If the nf_defrag_ipv6 module is loaded and at least one of the last commands prints a number greater than zero, the server’s firewall relies on conntrack for IPv6, and with a vulnerable kernel the server is at risk.
How to fix it
Update the kernel and reboot
This is the only complete fix. As soon as your distribution releases a fixed kernel:
Debian and Ubuntu:
apt update && apt full-upgrade -y && reboot
RHEL, AlmaLinux, Rocky Linux:
dnf upgrade -y kernel && reboot
The new kernel won’t run until you reboot. After rebooting, repeat the check from step 1. If the server runs in a container or on a platform with a shared kernel (such as OpenVZ or LXC), the kernel is updated by the provider or the host administrator.
If there is no fixed kernel yet
While Debian, Ubuntu and RHEL 9/10 have no fixes, there are two temporary options.
Disable IPv6 if the server doesn’t need it. This is Red Hat’s official recommendation:
sysctl -w net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.default.disable_ipv6=1
To keep the setting after a reboot:
printf 'net.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1\n' > /etc/sysctl.d/99-disable-ipv6.conf
Be careful: if you connect to the server over IPv6, or services on it are reachable only over IPv6, you will lose access to them. Make sure SSH works over IPv4 first.
Drop IPv6 fragments before reassembly. If you need IPv6, you can drop fragmented IPv6 packets before conntrack sees them: the fragment reassembly module runs at priority −400, and the rule below runs at priority −450. This is our suggestion, not an official one: it blocks all fragmented inbound IPv6 traffic. Typical servers barely need it, since TCP and most protocols size packets to avoid fragmentation, but large DNS responses over UDP, some VPNs and tunnels may stop working. Test your services after applying it.
nft add table ip6 fragdrop
nft add chain ip6 fragdrop pre '{ type filter hook prerouting priority -450; policy accept; }'
nft add rule ip6 fragdrop pre exthdr frag exists drop
The rule lasts until a reboot. To keep it, add the same table to /etc/nftables.conf. Once a fixed kernel is installed, you can remove the rule:
nft delete table ip6 fragdrop
How not to miss vulnerabilities like this
- Turn on automatic security updates and remember to reboot after kernel updates; see our roundup of last month’s vulnerabilities, which covers a similar network stack bug, NoisyTCP.
- Don’t rely on the firewall alone: services that shouldn’t be reachable from outside should listen on
127.0.0.1or an internal address, not on all interfaces. - Keep backups on separate storage in case the server does get compromised.
If you have a Linux VPS with its own kernel, as with KVM virtualization, you can update the kernel and reboot yourself.
Frequently asked questions
Does the vulnerability affect IPv4?
No. The bug is in the IPv6 fragment reassembly code. IPv4 traffic can’t be used to bypass the firewall through it.
Can it be used to take over a server?
On its own, the vulnerability doesn’t allow code execution. It lets packets reach a port the firewall keeps closed. The danger depends on what listens on the closed ports: if it’s a service without a password or with its own vulnerability, the attacker gains access to it.
Why does Red Hat rate it critical and Ubuntu medium?
Red Hat takes into account that the attack is remote, unauthenticated and bypasses a protection many systems rely on. Canonical considers that data confidentiality is not affected and integrity only to a limited extent. Both agree on the main point: the kernel needs updating.
Do UFW or firewalld help?
No. They themselves run on top of netfilter and conntrack and are therefore affected. Only a fixed kernel or the temporary measures in this article help.
Is there a public exploit?
As of 4 December 2026, no public exploit or attacks have been reported. But the bug description and the example in the fix are detailed enough for an exploit to appear quickly.


