{"id":17005,"date":"2026-12-04T12:06:43","date_gmt":"2026-12-04T12:06:43","guid":{"rendered":"https:\/\/newestek.com\/?p=17005"},"modified":"2026-12-04T12:06:43","modified_gmt":"2026-12-04T12:06:43","slug":"linuxs-nearly-21-year-old-netfilter-bug-lets-ipv6-traffic-sneak-past-firewalls","status":"publish","type":"post","link":"https:\/\/newestek.com\/?p=17005","title":{"rendered":"Linux\u2019s nearly 21-year-old Netfilter bug lets IPv6 traffic sneak past firewalls"},"content":{"rendered":"<div>\n<div id=\"remove_no_follow\">\n<div class=\"grid grid--cols-10@md grid--cols-8@lg article-column \">\n<div class=\"col-12 col-10@md col-6@lg col-start-3@lg\">\n<div class=\"article-column__content\">\n<section class=\"wp-block-bigbite-multi-title\">\n<div class=\"container\"><\/div>\n<\/section>\n<p class=\"wp-block-paragraph\">A flaw sitting for over 20 years in the Linux kernel\u2019s Netfilter connection-tracking (Conntrack) subsystem could let remote, unauthenticated attackers bypass firewall rules and reach otherwise inaccessible services.<\/p>\n<p class=\"wp-block-paragraph\">The vulnerability, tracked as <a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/cve-2026-139281\" target=\"_blank\" rel=\"noopener\">CVE-2026-139281<\/a>, stems from an integer truncation error in the handling of fragmented IPv6 packets, causing the kernel\u2019s Conntrack workflow to misidentify the destination of network traffic.<\/p>\n<p class=\"wp-block-paragraph\">Red Hat has <a href=\"https:\/\/access.redhat.com\/security\/cve\/cve-2026-139281\" target=\"_blank\" rel=\"noopener\">classified<\/a> the vulnerability as Critical, assigning it a CVSS score of 9.1 out of 10. The attack requires neither authentication nor user interaction, and Red Hat warns that an attacker can exploit it remotely to bypass stateful firewall protections on affected Red Hat Enterprise Linux systems.<\/p>\n<p class=\"wp-block-paragraph\">The underlying problem is a mismatch between how the kernel tracks IPv6 packet headers during fragment reassembly and how it subsequently delivers the reassembled traffic. This can leave firewall rules making decisions about a different network connection from the one that ultimately receives the packet.<\/p>\n<h2 class=\"wp-block-heading\" id=\"a-byte-sized-variable-is-creating-a-large-firewall-problem\">A byte-sized variable is creating a large firewall problem<\/h2>\n<p class=\"wp-block-paragraph\">The problem lies with a function in the kernel\u2019s IPv6 Netfilter Conntrack reassembly code, which was introduced in a January 2006 update. The \u201cfind_prev_fhdr()\u201d function identifies the offset of the Next Header field preceding an IPv6 Fragment header, passing that position through an integer pointer.<\/p>\n<p>When an IPv6 packet carries a long chain of extension headers, it pushes the relevant header offset beyond 255 bytes. The eight-bit variable, which the function stores the offset in, cannot handle values that large, causing it to wrap around and point to the wrong location.<\/p>\n<p class=\"wp-block-paragraph\">When the kernel reassembles the fragments, it uses this incorrect offset to modify the wrong byte in the IPv6 header chain. This can make Netfilter\u2019s Conntrack subsystem see a different destination from the one the kernel ultimately delivers the packet to. In one example, Conntrack identifies the traffic as <a href=\"https:\/\/www.csoonline.com\/article\/2071104\/udp-based-network-communications-face-critical-denial-of-service-attacks.html\">UDP<\/a> headed for port 53, while the payload actually reaches a service listening on UDP port 9999, according to an OSV <a href=\"https:\/\/osv.dev\/vulnerability\/CVE-2026-139281\" target=\"_blank\" rel=\"noopener\">description<\/a>.<\/p>\n<p class=\"wp-block-paragraph\">The mismatch is significant for <a href=\"https:\/\/www.csoonline.com\/article\/566615\/what-is-a-waf-12-top-web-application-firewalls-compared.html\">firewall<\/a> configurations that allow or restrict traffic based on Conntrack information. A packet that appears to match an allowed service can consequently reach a different, potentially restricted service.<\/p>\n<h2 class=\"wp-block-heading\"><a><\/a>A small kernel fix, but a broader patching exercise<\/h2>\n<p class=\"wp-block-paragraph\">The upstream fix is straightforward. The patch changes the local offset variable in find_prev_fhdr() from u8 (the eight-bit variable) to int, aligning it with the function\u2019s output argument and other offset variables in the same code path. This prevents the offset from wrapping when an extended IPv6 header chain places the relevant field beyond the 255-byte boundary.<\/p>\n<p class=\"wp-block-paragraph\">The patch was <a href=\"https:\/\/kernel.googlesource.com\/pub\/scm\/linux\/kernel\/git\/mkl\/linux-can\/+\/48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e\">authored<\/a> by Jeremy Jean and signed off by Pablo Neira Ayuso. Its commit message also identifies the original Netfilter connection-tracking subsystem as the introducing change, linking the underlying bug to longstanding kernel code.<\/p>\n<p class=\"wp-block-paragraph\">Affected Linux kernel ranges begin with 2.6.15, with fixes listed for the 5.10, 5.15, 6.1, 6.6, 6.12, 6.18 and 7.3 kernel series. The corresponding fixed releases are 5.10.275, 5.15.226, 6.1.193, 6.12.119, 6.18.65 and 7.3.6, respectively.<\/p>\n<p class=\"wp-block-paragraph\">Debian has also <a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2026-139281\">flagged<\/a> the vulnerability in its Bookworm and Trixie releases, while marking it fixed in its unstable (Sid) and Forky branches with kernel version 7.3.6-1. Canonical, too, <a href=\"https:\/\/ubuntu.com\/security\/CVE-2026-139281\">marked<\/a> the flaw as affecting the Linux kernel packages in Ubuntu releases dating back to 16.04 LTS, including 20.04, 22.04, 24.04, and the upcoming 26.04 and 26.10 releases.<\/p>\n<p class=\"wp-block-paragraph\">Administrators should monitor their respective distribution security advisories for package-specific fixes. Red Hat\u2019s recommended interim mitigation is to disable IPv6 on systems that do not require it. The vendor cautions that doing so disables all IPv6 connectivity, making it unsuitable for systems that depend on the protocol.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A flaw sitting for over 20 years in the Linux kernel\u2019s Netfilter connection-tracking (Conntrack) subsystem could let remote, unauthenticated attackers bypass firewall rules and reach otherwise inaccessible services. The vulnerability, tracked as CVE-2026-139281, stems from an integer truncation error in the handling of fragmented IPv6 packets, causing the kernel\u2019s Conntrack workflow to misidentify the destination of network traffic. Red Hat has classified the vulnerability as&#8230; <\/p>\n<p class=\"more\"><a class=\"more-link\" href=\"https:\/\/newestek.com\/?p=17005\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-17005","post","type-post","status-publish","format-standard","hentry","category-uncategorized","is-cat-link-borders-light is-cat-link-rounded"],"_links":{"self":[{"href":"https:\/\/newestek.com\/index.php?rest_route=\/wp\/v2\/posts\/17005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/newestek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/newestek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/newestek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/newestek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17005"}],"version-history":[{"count":0,"href":"https:\/\/newestek.com\/index.php?rest_route=\/wp\/v2\/posts\/17005\/revisions"}],"wp:attachment":[{"href":"https:\/\/newestek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/newestek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/newestek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}