CVE-2026-139281: IPv6 Fragments Can Slip Past Conntrack Firewall Rules
CVE-2026-139281: IPv6 fragments can slip past conntrack firewall rules
The Linux kernel’s IPv6 connection tracking has had a header-parsing flaw since kernel 2.6.15 shipped in January 2006, nearly 21 years. CVE-2026-139281 lets a sender craft IPv6 fragments so that conntrack records one transport tuple while the kernel delivers the payload to another. A two-fragment packet can be logged and filtered as UDP destination port 53 while its payload reaches UDP port 9999.
The CVE carries a CVSS 3.1 score of 9.1. Red Hat rates it 9.1 and has shipped a RHEL 8 kernel update. The flaw is a policy bypass: the firewall sees an allowed tuple and the local IPv6 stack delivers a different one. No memory outside the packet is corrupted.
What goes wrong
find_prev_fhdr() returns the offset of the Next Header field before an IPv6 Fragment header through an int pointer. It stored the working offset in a u8. An extension-header chain can put that field beyond byte 255, so the offset wraps before it is saved in the fragment queue.
Reassembly later uses the wrapped value to update the preceding Next Header field. That write lands on another byte in the IPv6 header chain. Conntrack then parses a different transport tuple from the one used by IPv6 local delivery. The record’s example is UDP 53 for the recorded tuple and UDP 9999 for the delivered payload. The sender controls both the wrapped offset and the byte written there, and the write happens deterministically when the fragment queue completes. The only precondition is an active nf_defrag_ipv6, which is present when IPv6 conntrack filtering is configured.
The CVSS vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. The sender needs no account and no user action. The impact is a wrong verdict from the host’s own netfilter policy plus a misparse in the host’s IPv6 input path. It does not cross a VM, container, or IOMMU boundary, and it does not corrupt memory outside the packet.
Affected kernels
The CVE record marks kernel 2.6.15 and later as affected. Fixed upstream stable releases are:
- 5.10.275
- 5.15.226
- 6.1.193
- 6.6.163
- 6.12.119
- 6.18.65
- 7.3.6
- 7.4-rc1
Those are upstream stable versions. They are not Red Hat’s kernel version numbers. Red Hat’s fix ships in its own RHEL 8 kernel update, and other distributions will backport the same change under their own versioning. Check the vendor advisory for the package you actually run.
What to do
Patch the kernel and reboot. On RHEL 8, apply the current kernel update from Red Hat. On other distributions, take the fixed kernel package from the vendor and confirm the running kernel after reboot.
If a system cannot be patched immediately, Red Hat suggests turning off IPv6 on systems that do not need it. Treat that as a mitigation for hosts without an IPv6 requirement. Do not read it as a universal instruction for every older kernel. Systems that need IPv6 and cannot patch should treat the exposure as urgent and limit which local IPv6 services are reachable.
There is no useful packet signature to hunt for after the fact. The bug is in how the kernel parses and reassembles a legal-looking fragment chain, and the mismatch is resolved inside the host. Inventory IPv6-enabled hosts with conntrack rules, confirm their kernel package versions, and close the gap with a vendor update.
The fix changes the working offset in find_prev_fhdr() from u8 to int, matching the output argument and the other offset variables in that path. The patch is small. The exposure window is not: the flawed code has been in every kernel since 2.6.15.
