A Linux IPv6 firewall bypass, tracked as CVE-2026-139281, lets a remote attacker send specially built IPv6 packets past firewall rules that should block them. The flaw sits in the Linux kernel itself and is almost 21 years old. Red Hat rates it 9.1 out of 10. No attacks have been confirmed in public so far, but the details are out and most Linux servers run an affected kernel. This post shows how to check your server and what to do while you wait for your distribution’s update.
The fix is a new kernel, and a new kernel only takes effect after a reboot. Plan the update and the reboot together.
The short answer
- Affected: Linux kernels from 2.6.15 (January 2006) up to the fixed releases listed below.
- At risk only if the server has IPv6 switched on and relies on its own stateful firewall rules (nftables, iptables, ufw or firewalld).
- Fix: update the kernel from your distribution and reboot.
- If no update is out yet and you do not use IPv6, Red Hat says you can switch IPv6 off as a stopgap.
- Exploited in the wild: not confirmed as of 4 December 2026.
What the Linux IPv6 firewall bypass does
Linux firewalls use a kernel feature called connection tracking, or conntrack. It records each connection, so a rule such as “allow replies to connections I started” can work. Large IPv6 packets can arrive in pieces called fragments, and the kernel puts them back together before the firewall looks at them.
The bug is in that reassembly code. It stores a position inside the packet in a variable that can only count up to 255. An attacker adds a long chain of IPv6 extension headers, so the position goes past 255 and wraps around. As a result, the kernel edits the wrong byte, and conntrack records one destination while the packet is delivered to another.
The kernel developers give an example. A packet in two fragments is recorded as traffic to UDP port 53 (DNS), but it reaches UDP port 9999. So a rule that allows DNS can let traffic through to a port you meant to block.
The fix is a one-line change that Jérémy Jean posted to the kernel mailing list in August. It reached the mainline kernel in 7.4-rc1.
Step 1: check your kernel version
uname -rIn our lab on 4 December 2026 this printed:
6.18.44-fc-v1252Then compare the number with the first fixed release for your kernel branch. These come from the CVE record:
| Kernel branch | First fixed release |
|---|---|
| 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 |
Our lab kernel is 6.18.44, which is below 6.18.65, so that machine needs the update.
However, this table only fits kernels built straight from kernel.org. Ubuntu, Debian and Red Hat add fixes to their own version numbers, so on those systems the package changelog and the security tracker are what count. That is the next step.
Step 2: check your distribution’s status
Status on 4 December 2026:
- Red Hat Enterprise Linux 8 and AlmaLinux 8: fixed kernel released on 3 December (RHSA-2026:107608).
- Debian 12 (bookworm) and 13 (trixie): still listed as vulnerable, including the security kernels. Debian testing and unstable have the fix.
- Ubuntu: the standard kernels are marked “needs evaluation”, so no fixed package yet.
On Ubuntu and Debian, install whatever is available and see whether a reboot is pending:
sudo apt update && sudo apt full-upgrade
[ -f /var/run/reboot-required ] && cat /var/run/reboot-required || echo "no reboot-required file"In our lab, which had no kernel update waiting, the second line printed:
no reboot-required fileOn Red Hat, AlmaLinux and Rocky Linux the command is sudo dnf update kernel, followed by a reboot. We did not run that one, because our lab is Ubuntu.
Also check the Ubuntu and Debian tracker pages in the sources each day until they say “fixed”. If you use automatic updates, the new kernel will install on its own, but the server still needs a reboot. Our unattended-upgrades guide shows how to set an automatic reboot time.
Step 3: find out whether IPv6 is on
The attack needs IPv6 traffic to reach the server. This lists the server’s public IPv6 addresses:
ip -6 addr show scope globalOur lab has no IPv6, so the command printed nothing. If yours prints one or more addresses, IPv6 is on and the flaw applies to you.
Next, see whether your firewall uses stateful rules. Almost every Linux firewall does, including ufw and firewalld:
sudo nft list ruleset | grep -n "ct state"Any line in the output means your rules depend on conntrack. We did not run this in the lab, because it has no firewall rules loaded.
Step 4: if you cannot patch yet
Red Hat’s advisory says the remote attack can be stopped by disabling IPv6, and it warns to do this only on systems that do not need IPv6. So first check whether your website has an IPv6 address in DNS (replace example.com with your own domain):
dig AAAA example.com +shortIf that prints an address, visitors reach you over IPv6, so do not switch it off. If it prints nothing and nothing inside your network uses IPv6, you can disable it with a file /etc/sysctl.d/99-disable-ipv6.conf that contains:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1Then run sudo sysctl --system. These are the standard kernel settings. We could not test them, because our lab has no IPv6. Remove the file again once the patched kernel is running.
If you need IPv6, there is no official workaround. A second layer still helps: the firewall or security group at your cloud provider filters traffic before it reaches the server, so keep that list of open ports as short as possible.
An optional rule we checked for syntax only
Some admins will want to drop fragmented IPv6 packets until the patch arrives. This nftables rule does that before the kernel reassembles them:
table ip6 yc_fragguard {
chain pre {
type filter hook prerouting priority -450; policy accept;
exthdr frag exists counter drop
}
}This is our own suggestion and does not come from any vendor. We checked only that nftables accepts it (nft -c -f returned no error). We have not tested it against this flaw. It can also break large DNS answers and some VPN traffic over IPv6, so use it only as a short stopgap and remove it after you patch.
What to check afterwards
After the reboot, confirm the new kernel is running with uname -r. Then look at what listens on the server, because an open port matters more when a firewall can be fooled. Our open ports guide walks through ss -tlnp line by line. A service that listens only on 127.0.0.1 is not reachable from outside, even through this bug.
Free check: our website safety check grades your site’s HTTPS and security headers from the outside in 30 seconds.
Related guides
- How to Check Open Ports on a Linux Server
- Unattended Upgrades on Ubuntu 24.04
- How to Check If Your Linux Server Is Hacked: 10 Commands
Sources
- CVE-2026-139281, Red Hat Customer Portal
- CVE-2026-139281, Debian security tracker
- CVE-2026-139281, Ubuntu security
- Critical 21-year-old Linux kernel flaw lets attackers bypass firewalls with crafted IPv6 packets, The Hacker News
- Affected kernel ranges, OSV
Worried a specific system is affected by a new flaw? Our Emergency Exposure Check (₹2,999) looks at up to five hosts, sites or product versions and gives a written verdict for each within 48 hours, with what to patch first and how to verify the fix. Full refund if we cannot check your setup.
