# CVE-2026-139281 - 21-year-old Linux kernel Netfilter conntrack IPv6 fragment offset truncation allows firewall rule bypass

> A flaw in the Linux kernel Netfilter connection tracking (nf_conntrack) IPv6 reassembly code, present since kernel 2.6.15 (January 2006), lets a remote unauthenticated attacker send crafted IPv6 fragments that conntrack misclassifies, bypassing conntrack-dependent firewall rules. Red Hat rates it critical (CVSS 9.1) while Canonical rates it medium (CVSS 4.0 6.9); upstream fixes exist and no in-the-wild exploitation or public PoC was found in the sources.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-03T19:37:38Z
- **Last updated:** 2026-12-04T03:49:18.097Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7423
- **ID:** TL-2026-7423
- **Severity:** CRITICAL (CVSS 9.1)
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 27 (3 shown free below)
- **CVEs:** CVE-2026-139281

## Description

CVE-2026-139281 is an incorrect numeric conversion (CWE-681) in the Linux kernel's Netfilter connection tracking subsystem. The helper find_prev_fhdr() in net/ipv6/netfilter/nf_conntrack_reasm.c returns the offset of the Next Header field that precedes an IPv6 Fragment header through an int pointer, but internally stores that offset in a u8 local variable (prev_nhoff). When a chain of IPv6 extension headers pushes that field beyond byte 255, the offset wraps before it is saved in the fragment queue.

During reassembly the wrapped offset is used to update the wrong Next Header field, overwriting another byte in the IPv6 header chain. As a result conntrack can parse a different transport tuple than the one used for local delivery. The discoverer's example is a two-fragment packet that conntrack records as UDP destination port 53 (DNS) while its payload is delivered to UDP port 9999. Firewall rules that depend on conntrack state or classification (for example rules that allow DNS traffic) can therefore be bypassed so that traffic reaches restricted services.

The flaw was introduced by the original commit 9fb9cbb1082d ("[NETFILTER]: Add nf_conntrack subsystem.") and is present since Linux 2.6.15 (January 2006). It was found and reported by Jérémy Jean, Deputy Head of the Cryptography Lab at France's ANSSI, who submitted the one-line fix (u8 -> int) to the netdev list on 22 August 2026; the upstream commit is 48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e, landed in Linux 7.4-rc1. Fixes are available in stable kernels 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 and 7.3.6.

Severity is disputed between vendors: Red Hat and the CVE record score it CVSS 3.1 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) while Canonical scores it CVSS 4.0 6.9 (Medium) citing no confidentiality impact and limited integrity impact. NVD shows no score at time of research. The sources report no observed exploitation and no public proof-of-concept. Ubuntu lists all supported releases (16.04 through 26.10) as vulnerable for the linux package and cloud/FIPS/GKE flavors; Debian lists bookworm and trixie as vulnerable with the fix only in sid/forky (7.3.6-1) at the time of checking.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1211 Exploitation for Stealth
- T1685 Disable or Modify Tools
- T1205 Traffic Signaling
- T1571 Non-Standard Port
- T1599 Network Boundary Bridging
- T1562.004 Disable or Modify System Firewall
- T1046 Network Service Discovery
- T1595 Active Scanning
- T1210 Exploitation of Remote Services

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**CVE-2026-139281 nf_conntrack IPv6 Fragmented UDP/53 First Fragment at Kernel Firewall Log (TL-2026-7423)** (`TL-2026-7423-SPL-001`)

Detects the trigger precondition for CVE-2026-139281 (Linux nf_conntrack IPv6 reassembly, find_prev_fhdr() u8 truncation of the Next Header offset, CWE-681): an IPv6 first fragment (FRAG:0) carrying UDP to destination port 53 recorded by the kernel netfilter LOG/nflog target. The discoverer's example is a two-fragment UDP packet that conntrack classifies as port 53 (DNS) but that is delivered to port 9999, bypassing DNS-allow rules and reaching restricted services (T1190, T1211, T1599). Fragmented IPv6 DNS is rare in practice, so first fragments to UDP/53 are a high-value hunting signal. This is a precondition/behavioural detector: it cannot confirm that the offset wrap occurred, and it requires an ip6tables/nftables LOG rule that records fragments. No in-the-wild exploitation or public PoC was reported at research time.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1211, T1599
- **Data sources:** linux_syslog_kernel_netfilter_log, splunk_index_linux_sourcetype_syslog, azure_monitor_syslog_kern
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=linux sourcetype=syslog earliest=-24h "HOPLIMIT=" "PROTO=UDP" "FRAG:" "DPT=53" | rex "SRC=(?<src_ip>[0-9a-fA-F:]+)\s+DST=(?<dst_ip>[0-9a-fA-F:]+)" | rex "FRAG:(?<frag_off>\d+)" | where match(src_ip, ":") AND tonumber(frag_off)=0 | stats count AS fragments min(_time) AS first_seen max(_time) AS last_seen by host src_ip dst_ip | convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
Syslog
| where TimeGenerated > ago(24h)
| where Facility == "kern"
| where SyslogMessage has_all ("HOPLIMIT=", "PROTO=UDP", "FRAG:", "DPT=53")
| extend SrcIp = extract(@"SRC=([0-9a-fA-F:]+)", 1, SyslogMessage), DstIp = extract(@"DST=([0-9a-fA-F:]+)", 1, SyslogMessage), FragOffset = toint(extract(@"FRAG:(\d+)", 1, SyslogMessage))
| where SrcIp contains ":" and FragOffset == 0
| summarize Fragments = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Computer, SrcIp, DstIp
| project Computer, SrcIp, DstIp, Fragments, FirstSeen, LastSeen
```

### Sigma

```yaml
title: CVE-2026-139281 nf_conntrack IPv6 Fragmented UDP/53 First Fragment
id: 7c1e5a42-3b8d-4f6a-9d21-5e0a7b4c8f13
status: experimental
description: Detects IPv6 fragmented UDP traffic to port 53 recorded by the Linux netfilter LOG target. This is the trigger precondition for CVE-2026-139281 (nf_conntrack IPv6 Next Header offset truncation) where conntrack may classify a fragmented packet as DNS while it is delivered to another port. Requires an ip6tables/nftables log rule that records fragments.
references:
    - https://www.cve.org/CVERecord?id=CVE-2026-139281
    - https://access.redhat.com/security/cve/cve-2026-139281
    - https://lists.openwall.net/netdev/2026/08/22/172
    - https://www.bleepingcomputer.com/news/security/critical-21-year-old-linux-flaw-lets-hackers-bypass-firewall-rules/
author: Threadlinqs Team
date: 2026/12/03
tags:
    - attack.initial-access
    - attack.t1190
    - attack.defense-evasion
    - attack.t1211
    - attack.t1599
    - cve.2026.139281
logsource:
    product: linux
    service: syslog
detection:
    kw_ipv6:
        - 'HOPLIMIT='
    kw_frag:
        - 'FRAG:0 '
    kw_udp:
        - 'PROTO=UDP'
    kw_dns:
        - 'DPT=53 '
    condition: kw_ipv6 and kw_frag and kw_udp and kw_dns
falsepositives:
    - Legitimate large DNSSEC or EDNS0 responses fragmented by upstream resolvers
    - Network scanners or QA tools that deliberately send fragmented IPv6 DNS
level: medium
```

**Known false positives:**

- Legitimate fragmented IPv6 DNS responses (large DNSSEC/EDNS0 answers) from known resolvers
- Authorised network scanning or protocol-conformance testing that sends fragmented IPv6 UDP/53

**Tuning notes:** Requires an ip6tables/nftables LOG (or nflog) rule that logs IPv6 fragments with a distinctive prefix, since the kernel does not log fragments by default. Exclude known authoritative/recursive resolver addresses and sanctioned scanner sources. Prioritise hits where the destination is a host that does not run a resolver. Pair with fix verification: kernels 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or any build containing commit 48d522b65fb0 are patched.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- CVE-2026-139281 IPv6 Fragment Probing: Burst From Single Source Across Hosts or Ports (locked: unlock with TL Creds)
- [indicator] Firewall Ruleset Flush or Permissive Default Policy (nft/ip6tables) (locked: unlock with TL Creds)
- CVE-2026-139281 [indicator] Host Accepting Inbound IPv6 Connection on Port 9999 (locked: unlock with TL Creds)
- IPv6 Fragment Crafting Tool Execution (Scapy / THC-IPv6) Relevant to CVE-2026-139281 (locked: unlock with TL Creds)
- Netfilter Conntrack Tampering (conntrack flush, [indicator] Unload, frag6 Sysctl) (locked: unlock with TL Creds)
- IPv6 Fragmentation Anomalies in Zeek Weird Log or IDS Alerts (CVE-2026-139281 Trigger Context) (locked: unlock with TL Creds)
- CVE-2026-139281 IPv6 Fragmented DNS-Classified UDP Reaching Non-Resolver Host (locked: unlock with TL Creds)
- CVE-2026-139281 Inbound External IPv6 UDP to Non-Standard Port 9999 (Conntrack Bypass Delivery) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 27)

Defanged, TLP:CLEAR.

- File hash: `48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e`
- File hash: `c540c1de02e9bc08a9880cee39a4757ef23365c9`
- File hash: `150100520016209a46a0419edc41d1c94ebc7f66`

Full set of 27 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [BleepingComputer: Critical 21-year-old Linux flaw lets hackers bypass firewall rules](https://www.bleepingcomputer.com/news/security/critical-21-year-old-linux-flaw-lets-hackers-bypass-firewall-rules/)
- [CVE record CVE-2026-139281](https://www.cve.org/CVERecord?id=CVE-2026-139281)
- [Red Hat advisory CVE-2026-139281](https://access.redhat.com/security/cve/cve-2026-139281)
- [Red Hat Bugzilla 2587230: kernel: Firewall bypass via IPv6 fragment header offset truncation](https://bugzilla.redhat.com/show_bug.cgi?id=2587230)
- [Red Hat solution 8709: Disabling IPv6](https://access.redhat.com/solutions/8709)
- [Debian security tracker CVE-2026-139281](https://security-tracker.debian.org/tracker/CVE-2026-139281)
- [Ubuntu security notice CVE-2026-139281](https://ubuntu.com/security/CVE-2026-139281)
- [Kernel patch: netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset (netdev)](https://lists.openwall.net/netdev/2026/08/22/172)
- [SecurityOnline CVE Watchtower: CVE-2026-139281](https://securityonline.info/cve-watchtower/cve-2026-139281/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7423
