This is the English adaptation of the original Korean analysis at dohyeontech.github.io.
On 3 December 2026 Red Hat published CVE-2026-139281 as Critical, CVSS 3.1 9.1. The bug title in their tracker is literal: "Firewall bypass via IPv6 fragment header offset truncation." The code lives in the kernel's Netfilter connection-tracking reassembly path, net/ipv6/netfilter/nf_conntrack_reasm.c. Jérémy Jean, deputy head of the cryptography lab at ANSSI, sent the fix to netfilter-devel on 22 August 2026; it reached mainline in 7.4-rc1 on 1 November and was backported to the maintained stable branches. The CVE record was published on 30 November.
In one sentence: an attacker sends two IPv6 fragments whose extension-header chain pushes a field offset past byte 255, a u8 local truncates that offset, and reassembly then overwrites the wrong byte — so the tuple conntrack records and the tuple actually delivered to a socket diverge. The patch commit's own example is a two-fragment packet recorded as UDP destination port 53 while its payload is delivered to UDP port 9999. A firewall that allows DNS and nothing else passes traffic aimed at a different port.
What this is not matters as much as what it is. It is not remote code execution, not a denial of service, and not memory corruption outside the packet; the CVE scoring rationale for A:N states that the write lands inside the first fragment's already-linearised header and produces no oops, hang or leak. C:H and I:H are attached because the host's own packet filter reaches a wrong verdict, and the attacker chooses the tuple that verdict follows. The impact exists where the firewall is the only boundary in front of a service.
| Item | Status |
|---|---|
| Affected code | Confirmed — find_prev_fhdr() in net/ipv6/netfilter/nf_conntrack_reasm.c, present since 2.6.15 (January 2006), Fixes: 9fb9cbb1082d |
| Fixed versions | Confirmed — 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 (CVE record) |
| Severity | Confirmed — CVSS 3.1 9.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CNA: kernel.org). Red Hat Critical; Ubuntu assigns its own Medium priority (reported as 6.9) |
| Exploitation | Not confirmed — no vendor reports attacks. Not in KEV |
| Public PoC | Not found — as of 4 December 09:00 KST. The patch and commit message have been public since August |
| Distribution coverage | Confirmed — only RHEL 8 received an erratum on 3 December. RHEL 9/10/kernel-rt, every supported Ubuntu release and Debian bookworm/trixie were unpatched on 4 December |
1. 9.1 for a one-line fix
That combination is the story. The attack surface is broad and the defect is physically tiny: one variable's type.
Stateful host firewalls on Linux generally use conntrack. The default IPv6 rulesets of ufw and firewalld do, and so do hand-written nftables or ip6tables rules using ct state or -m conntrack. When such a ruleset registers, the kernel enables the IPv6 defragmentation hook (nf_defrag_ipv6), and every received IPv6 fragment is reassembled before filtering and before socket lookup. That ordering is why the CVE rationale scores PR:N: the attacker only sends packets, and the victim's kernel does the reassembly on its own.
The exposed setups are specific:
- a database, cache or admin panel bound to all addresses including IPv6, with the firewall opening only a few ports;
- a service deliberately listening on IPv6 with the firewall limiting who reaches it;
- whether it matters after that depends on the service's own authentication. If it has none, because it trusted the network, this bug turns the filter into a formality.
The conditions that close it are equally specific. No global IPv6 address, an upstream that drops IPv6 fragments, or a ruleset that never uses connection tracking means this code path does not run. The CVE record scopes the effect to the host's own input path, and its S:U rationale states that no VM, container or IOMMU boundary is crossed. It is not a container escape.
2. Where the chain crosses byte 255
The IPv6 base header is 40 bytes; extension headers can follow it in a chain, each carrying a Next Header field in its sixth byte. A fragmented packet has a Fragment header (Next Header 44) somewhere in that chain, and the kernel must remember the offset of the Next Header field just before the Fragment header so it can repair that field after removing the fragment header. That is find_prev_fhdr().
The vulnerable code, as of kernel 6.12 (the fix's diff hunk starts at line 398 of this function):
/* net/ipv6/netfilter/nf_conntrack_reasm.c, find_prev_fhdr() */ static int find_prev_fhdr(struct sk_buff *skb, u8 *prevhdrp, int *prevhoff, int *fhoff) { u8 nexthdr = ipv6_hdr(skb)->nexthdr; const int netoff = skb_network_offset(skb); u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); /* 8 bits */ int start = netoff + sizeof(struct ipv6hdr); int len = skb->len - start; u8 prevhdr = NEXTHDR_IPV6; while (nexthdr != NEXTHDR_FRAGMENT) { struct ipv6_opt_hdr hdr; int hdrlen; ... prevhdr = nexthdr; prev_nhoff = start; /* record this header's offset */ nexthdr = hdr.nexthdr; len -= hdrlen; start += hdrlen; } ... *prevhdrp = prevhdr; *prevhoff = prev_nhoff; /* exported through an int*, already truncated */ *fhoff = start; return 0; } Three lines carry the bug. The working variable is u8, holding 0–255. Each iteration overwrites it with the current header's offset. The result leaves through an int * parameter. The output type is int; the working variable is not. Every other offset in the function — start, fhoff, len — is already an int.
Field offsets inside an IPv6 header rarely exceed 40 bytes, and extension-header chains in real traffic are usually zero to two headers long. A u8 holds that comfortably. The assumption fails when the chain gets long, and the arithmetic shows exactly where.
- On Ethernet,
netoff(the skb offset where the IPv6 header begins) is 14. The first extension header sits at 14 + 40 = 54. - Extension header lengths are always multiples of 8 (
ipv6_optlen()computes(hdrlen+1) << 3). Every position on the chain is therefore54 + 8k. - The moment the pre-fragment header's offset passes 255, the
u8stores the value minus 256.54 + 8kbecomes54 + 8(k-32).
That last line defines the bug's character. The truncated offset is not random garbage: it lands exactly on the Next Header field of an extension header 32 headers earlier. The error is a multiple of 256, so the target keeps its role. An attacker can size the chain in 8-byte steps and therefore choose which header's Next Header field gets overwritten. L2 header length (VLAN tags, tunnels) shifts netoff and therefore the required chain length, but that too is an attacker variable.
3. The byte reassembly overwrites
Four steps carry the truncated offset into a packet rewrite.
-
ipv6_rcv→NF_INET_PRE_ROUTING→ipv6_defrag→nf_ct_frag6_gather(). Fragments are reassembled before filtering. -
find_prev_fhdr()returns the truncated offset, which is passed asnhoffintonf_ct_frag6_queue(). - For the first fragment (offset 0), that value is stored in
fq->nhoffset. The queue waits for the rest. - When the queue completes,
nf_ct_frag6_reasm()removes the fragment header and executes one line:
/* nf_ct_frag6_reasm() — repair the Next Header field before the removed fragment header */ skb_network_header(skb)[fq->nhoffset] = skb_transport_header(skb)[0]; The value written is the real transport protocol number — 17 for UDP, 6 for TCP. In normal operation it lands on the Next Header field immediately preceding the fragment header, so the chain survives the removal. With nhoffset folded by 256, it lands 32 extension headers earlier and rewrites that header's value (say, Destination Options 60) to 17.
To a parser, that byte is a declaration: "the chain ends here and UDP starts." The eight bytes after that extension header are then read as a UDP header, and the ports in it are whatever the attacker placed there. That is how the patch commit's example works: two fragments recorded by conntrack as UDP destination 53, payload delivered to UDP 9999.
The CVE scoring rationale is more precise about where the two readings split. After reassembly, ipv6_get_l4proto() and ipv6_find_hdr() walk the chain from the IPv6 header and classify one L4 header, while ip6_protocol_deliver_rcu() uses IP6CB->nhoff, recorded at fragment input, together with the reset transport header, and delivers another. One tuple is what the firewall and conntrack see; the other is what the socket receives. In the record's words, "the sender sets the tuple that conntrack records and nftables/ip6tables match (e.g. allowed UDP 53) independently of the tuple delivered (e.g. UDP 9999)."
Two limits on this account. We did not build or run a proof of concept for this article; the steps above come from reading the published patch hunk, the kernel source of the three functions involved, and the CVE scoring rationale against each other. Which header an attacker targets, and the exact packet composition, is not documented publicly beyond "the sender chooses". And the effect stops at the packet filter: a service with its own authentication still demands it. A 9.1 with no RCE is not a contradiction here — the confidentiality and integrity scores come from traffic classified as allowed arriving somewhere else.
4. One line, but the distributions are split
The fix is a type change.
--- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c @@ -398,7 +398,7 @@ find_prev_fhdr(struct sk_buff *skb, u8 *prevhdrp, int *prevhoff, int *fhoff) u8 nexthdr = ipv6_hdr(skb)->nexthdr; const int netoff = skb_network_offset(skb); - u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); + int prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); int start = netoff + sizeof(struct ipv6hdr); int len = skb->len - start; u8 prevhdr = NEXTHDR_IPV6; The commit message asks for an int "matching the output argument and the other offset variables in this path." Nothing else is needed: the offset is bounded by the skb length, and an int does not wrap within that range. The container changes; the computed value does not.
The delivery timeline is where the problem moves.
| Date | Event |
|---|---|
| 2006-01 | Kernel 2.6.15 ships the conntrack subsystem with the u8 in find_prev_fhdr() (Fixes: 9fb9cbb1082d) |
| 2026-08-22 | Jérémy Jean (ANSSI) posts the fix to netfilter-devel |
| 2026-11-01 | Fix reaches mainline 7.4-rc1; backported to the maintained stable branches |
| 2026-11-30 | kernel.org CNA publishes CVE-2026-139281 (13:33 UTC), CVSS 3.1 9.1 |
| 2026-12-03 | Red Hat rates it Critical, ships RHSA-2026:107608 for RHEL 8; press coverage follows |
Distribution status as of 4 December 09:00 KST:
| Distribution | Status (source) |
|---|---|
| RHEL 8 | Fixed — RHSA-2026:107608 on 3 December. RHEL 8 kernel-rt still Affected |
| RHEL 9 and 10 | Unpatched — kernel and kernel-rt Affected, no erratum (Red Hat CVE page) |
| Ubuntu 16.04–26.10 | Unpatched — linux Vulnerable on every supported release, some hwe variants too; own priority Medium (Ubuntu CVE page) |
| Debian 12 and 13 | Unpatched — bookworm 6.1.192-3 (security) and trixie 6.12.118-1 (security) both vulnerable (Debian tracker) |
| Debian forky and sid | Fixed — 7.3.6-1 / 7.3.7-1 |
Red Hat moved first and stopped at RHEL 8. Ubuntu rates the issue Medium (6.9 in press reports) while it evaluates every supported kernel, and Debian leaves both stable releases vulnerable. The same kernel code is scored 9.1 by one vendor and 6.9 by another — Ubuntu reads the confidentiality impact as nil and the integrity impact as limited, while Red Hat weights remote unauthenticated policy bypass. Which reading applies depends on your setup; where the firewall is the only boundary, Red Hat's is the realistic one.
In order:
- Update the kernel. Any version at or above the fixed list is clear of this code. Kernel updates do not take effect without a reboot; where a distribution offers livepatching, check separately whether this CVE has a livepatch (we did not).
- Disable IPv6 where it is not used. This is Red Hat's suggested mitigation, with steps in their KB (
solutions/8709). It is not an option for IPv6 hosts. - Measure whether IPv6 fragments arrive at all. Watch
Ip6ReasmReqds,Ip6ReasmOKsandIp6ReasmFailsin/proc/net/snmp6. On a host that has no reason to receive external fragments, these should stay near zero. - Decide an edge policy for fragments. The remote path for this bug is fragments reaching the host. Dropping all IPv6 fragments can break tunnels, VPNs and some UDP protocols, so decide per host what it must receive.
- Reduce listeners that trust the firewall. Bind sensitive services to loopback or internal addresses and give them their own authentication. This bug does not bypass authentication, so that layer still stops the damage.
5. What remains open
No attack has been reported by any vendor. No public proof of concept was found as of 4 December 09:00 KST. The CVE record carries no CVSS 4.0 score, and NVD publishes no score of its own, leaving Red Hat's and kernel.org's 9.1. Upstream disclosed the defect only to the depth of the commit message; it does not publish the exploit construction. We did not check how cloud security groups or Korean ISPs handle IPv6 fragments, so "it is in the cloud, therefore safe" is not a supported conclusion. Errata dates for RHEL 9/10 and Ubuntu are not announced.
One detail worth keeping: this is the second "half-shipped patch" story this week. On 3 December the Acronis cPanel plugin had no fixed build for 1.9.4 and offered a downgrade instead; this kernel bug has had fixed code since August while roughly half the major distributions remain vulnerable. A patch existing and a patch arriving are different problems, and this week supplied both examples side by side.
Sources
- CVE record:
https://www.cve.org/CVERecord?id=CVE-2026-139281 - Fix on netfilter-devel (2026-08-22):
https://lists.openwall.net/netdev/2026/08/22/172 - Red Hat CVE page (errata, mitigation):
https://access.redhat.com/security/cve/cve-2026-139281 - Ubuntu CVE page (per-release status):
https://ubuntu.com/security/CVE-2026-139281 - Debian security tracker:
https://security-tracker.debian.org/tracker/CVE-2026-139281 - Kernel source:
net/ipv6/netfilter/nf_conntrack_reasm.c(find_prev_fhdr(),nf_ct_frag6_queue(),nf_ct_frag6_reasm())
The original Korean analysis, with the same evidence and limits, is at dohyeontech.github.io.