GrepBoard/Manuals
609 manuals ·

Linux CVE-2026-139281: IPv6 Fragments Can Bypass Firewall Rules

·Tested on Debian 13·sid · Ubuntu 24.04 repository lookup (Docker) · 2026-12·Test scope ↓·6 steps

CVE-2026-139281 is a kernel conntrack bug in IPv6 fragment reassembly. Check the conditions with commands, read distro status, and verify the fixed kernel.

CVE-2026-139281 is a Linux kernel conntrack bug: when reassembling IPv6 fragments, the offset of the Next Header field in front of the Fragment header is kept in a u8 variable, so it wraps once it lies beyond byte 255. The CNA record says this can make conntrack parse a different transport tuple from the one used by IPv6 local delivery, and gives the example of a two-fragment packet recorded as UDP destination port 53 while its payload is delivered to UDP port 9999. The code dates back to 2.6.15, and the fix is a commit that changes one variable to int. This article covers checking and response only; the vulnerable behavior was not reproduced.

[1] Check whether the host receives IPv6. If the address list has addresses on interfaces other than lo, the host accepts IPv6 packets. Below is a test container started without networking. Started from the same image with --sysctl net.ipv6.conf.all.disable_ipv6=1, the address list was empty.

console
$ cat /proc/sys/net/ipv6/conf/all/disable_ipv60$ cat /proc/net/if_inet600000000000000000000000000000001 01 80 10 80       lo

[2] Check the conntrack modules. The CVSS rationale in the CNA record names one precondition, an active nf_defrag_ipv6, and says it is present whenever the IPv6 conntrack filtering being bypassed is configured.

console
$ grep -E '^nf_(conntrack|defrag_ipv6) ' /proc/modulesnf_conntrack 196608 5 xt_nat,nf_conntrack_netlink,xt_conntrack,xt_MASQUERADE,nf_nat, Live 0x0000000000000000nf_defrag_ipv6 24576 1 nf_conntrack, Live 0x0000000000000000

This list comes from a host running Docker. The fourth column of nf_defrag_ipv6 (modules using it) is nf_conntrack. The list alone does not tell you whether IPv6 rules use conntrack, so go on to step 3. If the modules are missing, they are not loaded as modules; a kernel with them built in does not list them here.

[3] Find IPv6 rules that use conntrack. The CNA record says the tuple conntrack records and nftables or ip6tables match (for example, allowed UDP 53) can differ from the tuple actually delivered. So look at port-allow rules in the same chain, not only ct state rules.

For nftables, print only ct lines from inet and ip6 tables, with the table name. ip tables see IPv4 packets only, so they are skipped.

console
# nft list ruleset | awk '$1=="table"{f=$2; t=$2" "$3} (f=="inet"||f=="ip6") && /(^|[ \t])ct[ \t]/{print t": "$0}'

The same awk was run against two test rule files. a.nft has an inet table with two ct state lines and port-allow lines. b.nft has ct only in an ip table; its ip6 table holds a port rule and a set named ct_ports.

console
$ awk '$1=="table"{f=$2; t=$2" "$3} (f=="inet"||f=="ip6") && /(^|[ \t])ct[ \t]/{print t": "$0}' a.nftinet filter: 		ct state established,related acceptinet filter: 		ct state invalid drop$ awk '$1=="table"{f=$2; t=$2" "$3} (f=="inet"||f=="ip6") && /(^|[ \t])ct[ \t]/{print t": "$0}' b.nft

awk exits with 0 even when nothing matches. Judge by the output, not the exit code.

For ip6tables, search for both -m conntrack and the older -m state. The last of the three test files (e.ip6tables) has no state rule.

console
# ip6tables-save | grep -nE -- '-m (conntrack|state) '
console
$ grep -nE -- '-m (conntrack|state) ' c.ip6tables6:-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT$ grep -nE -- '-m (conntrack|state) ' d.ip6tables6:-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT$ grep -nE -- '-m (conntrack|state) ' e.ip6tables

[4] Check your distribution's status. These values were read on 2026-12-05 (KST) and will change; open the pages yourself. Debian · Ubuntu · Red Hat

DistributionPackageStatus
Debian 12 bookwormlinux 6.1.176-1 · security 6.1.192-3vulnerable
Debian 13 trixielinux 6.12.117-1 · security 6.12.118-1vulnerable
Debian forky · sidlinux 7.3.6-1 · 7.3.7-1fixed (fixed in 7.3.6-1)
Ubuntu 16.04 to 26.04 · stonkinglinux · linux-aws · linux-azure · linux-gcp · linux-oracleneeded (azure and gcp on 18.04 are ignored)
Ubuntu 22.04 · 24.04linux-hwe-6.8 · linux-hwe-7.0needed
Ubuntu 24.04linux-hwe-6.17ignored (end of life)
RHEL 8kernelFixed · RHSA-2026:107608 · kernel-4.18.0-553.193.1.el8_10
RHEL 6 ELS · 7 ELS · 8.4/8.6 AUS·EUSkernelFixed · RHSA-2026:107921 · 108700 · 108721 · 108619
RHEL 9 · 10kernelAffected
RHEL 7 · 8 · 9kernel-rtAffected

Debian and Ubuntu had no fixed package on that date. A kernel update cannot close this yet. The upstream fixed versions in the CNA record (5.10.275 · 5.15.226 · 6.1.193 · 6.6.163 · 6.12.119 · 6.18.65 · 7.3.6 · 7.4-rc1) apply only to kernels you build yourself. Distributions backport patches, so compare the package version with the fixed version in the tracker.

[5] When a fix ships, confirm it in the changelog. On Debian, search for the commit subject, not the CVE number. The changelog of the already fixed sid package has the subject but not the number.

console
$ apt-get changelog linux-image-7.3.7+deb14-amd64 2>/dev/null | grep -c CVE-2026-1392810$ apt-get changelog linux-image-7.3.7+deb14-amd64 2>/dev/null | grep -c 'avoid truncating IPv6 nexthdr offset'1

The changelog for the trixie security package could not be fetched, and the count still came out as 0. When you get 0, first check whether the first line starts with Err. If the fetch fails, compare the package version with the tracker's fixed version using dpkg --compare-versions.

console
$ apt-get changelog linux-image-6.12.118+deb13-amd64 2>/dev/null | head -1Err:1 https://metadata.ftp-master.debian.org linux-signed-amd64 6.12.118+1 Changelog$ apt-get changelog linux-image-6.12.118+deb13-amd64 2>/dev/null | grep -c 'avoid truncating IPv6 nexthdr offset'0

For the current Ubuntu 24.04 candidate, 6.8.0-151.151, other CVEs match 3,224 lines while this CVE matches 0. Whether the fixed package will list the number or the subject cannot be seen yet, so search for both.

console
$ apt-get changelog linux-modules-6.8.0-151-generic 2>/dev/null | grep -c CVE-2026-1392810$ apt-get changelog linux-modules-6.8.0-151-generic 2>/dev/null | grep -c CVE-2026-3224

After installing the new kernel, reboot and confirm that the running kernel is that version. How to map uname -r to the package version and compare boot time with install records is in the usb2shell check. A plain apt-get upgrade on Debian keeps back the metapackage when it needs a newly named kernel package (Debian 13.8 update article).

[6] Until a fix is available, the only response in official sources is Red Hat's: disable IPv6. The Red Hat CVE page says the remote attack vector can be mitigated by disabling IPv6 and warns: "This will disable all IPv6 connectivity on the system. Only apply this mitigation on systems that do not require IPv6." The procedure is in another Red Hat document that requires a subscription login, and was not checked. The Debian tracker has no mitigation note, and the mitigation field in Ubuntu's record is empty. Other approaches, such as firewall rules that drop fragments, are not included because no official source was found.

Before disabling IPv6, check whether IPv6 connections reach the host and whether any repository, DNS or monitoring endpoint is reachable only over IPv6, and secure console access first. The kernel documentation says disable=1 on the ipv6 module adds no IPv6 addresses to interfaces, makes it impossible to open an IPv6 socket, and requires a reboot to enable IPv6 again. Which method blocks this bug's path was not verified here.

Where checks get confusing

  • **uname -r and /proc/modules inside a container show the host kernel.** Rebuilding images does not fix this CVE; update the host kernel.
  • Severity labels differ by source. The CNA, Red Hat and Ubuntu all show CVSS 3.1 9.1, yet Red Hat says Critical and Ubuntu's priority is medium. Do not postpone based on a scanner grade alone.

Check it with the CIDR · subnet calculator tool ↗ — calculated in your browser.

#linux-kernel#cve#netfilter#conntrack#ipv6#nftables