# CVE-2026-139281 on Debian, Ubuntu and Proxmox VE: an IPv6 conntrack bug that can slip fragments past an nftables firewall — check and patch your kernel

> CVE-2026-139281 is a Linux kernel bug in the IPv6 connection-tracking reassembly path (find_prev_fhdr() in net/ipv6/netfilter/nf_conntrack_reasm.c). The offset of the Next Header field before an IPv6 Fragment header is returned through an int but stored in a u8, so a long extension-header chain can push it past 255 and make it wrap. The kernel then rewrites the wrong byte during reassembly, and connection tracking can read a different transport tuple than local delivery uses. The CVE record's own example is a two-fragment packet recorded by conntrack as UDP port 53 while the payload is delivered to UDP port 9999, which means a stateful nftables or ip6tables rule can be made to accept traffic for a port it was meant to block. The kernel maintainers score it CVSS 3.1 9.1 (critical); Ubuntu scores it 6.9 (medium). It was published on 30 November 2026, the one-line fix changes the offset variable from u8 to int (upstream commit 48d522b65fb0), and the first fixed stable releases are 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 and 7.3.6. As of 4 December 2026 Debian 12 (bookworm) and 13 (trixie) are still marked vulnerable and every supported Ubuntu release is marked needed, so most production kernels are not yet patched. This post explains the mechanism from the patch, shows the read-only checks we ran to confirm one of our own Ubuntu 24.04 hosts is affected, lists fixed versions by platform, and gives a stop-gap for firewalls that filter IPv6 with connection tracking. We did not reproduce the bypass and do not publish how to build the packet.

- URL: https://ngnext.tech/knowledge/cve-2026-139281-ipv6-conntrack-nftables-fragment-check-kernel
- Published: 2026-12-04
- Updated: 2026-12-04
- Author: Nishant Gauraw, [NG-NeXT](https://ngnext.tech)
- Tags: cve-2026-139281, linux-kernel, netfilter, nftables, conntrack, ipv6, ipv6-fragmentation, nf-defrag-ipv6, firewall, debian, ubuntu, proxmox, proxmox-ve, bare-metal, security, patching
- Evidence: Verified against primary sources. In the evidence table: 2 claims tested here, 4 verified against a primary source, 1 reported, not reproduced.

**As of 4 December 2026**, [NG-NeXT](https://ngnext.tech) is tracking CVE-2026-139281, a Linux kernel bug in IPv6 connection tracking that can make a stateful firewall accept traffic for a port it was meant to block. The flaw was published on 30 November 2026. The kernel maintainers rate it 9.1 (critical); Ubuntu rates it 6.9 (medium). Most production kernels are not yet patched: as of this writing the Debian tracker marks bookworm and trixie vulnerable and the Ubuntu tracker marks every supported release needed.

This is a defensive advisory. It explains the mechanism from the public patch, shows the read-only checks we ran to confirm that one of our own hosts is affected, gives the fixed-version table and a stop-gap, and states plainly what we did not do: we did not reproduce the bypass, and we do not publish how to build the packet.

## What the kernel fix changes

The bug is in `find_prev_fhdr()` in `net/ipv6/netfilter/nf_conntrack_reasm.c`, the function the connection-tracking reassembly path uses to walk an IPv6 packet's extension-header chain and locate the Fragment header. It records the offset of the Next Header field that precedes the Fragment header and returns it through an `int` pointer, but it keeps the working value in a `u8` local variable. An IPv6 extension-header chain can be longer than 255 bytes, and when the Next Header field sits past byte 255 the value wraps before it is stored.

Reassembly later uses that wrapped offset to update the Next Header field just before it, so it writes to the wrong byte of the header chain. The consequence described in the CVE record is that connection tracking can parse a different transport tuple than the one IPv6 local delivery uses. The record's example: a two-fragment packet recorded as UDP destination port 53 while its payload is delivered to UDP port 9999.

The fix is one line: the working offset is changed from `u8` to `int`, matching the output argument and the other offset variables in the same path (upstream commit `48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e`). The bug was introduced in 2006 (commit `9fb9cbb1082d`, kernel 2.6.15), so it has been present in every long-lived kernel branch.

## Who is exposed

A host is exposed when both of these are true:

- its kernel predates the fixed version for its branch, and
- it uses IPv6 connection tracking: the `nf_defrag_ipv6` and `nf_conntrack` modules are loaded, which is what happens when you filter IPv6 statefully with nftables or ip6tables.

The attack is remote and needs no credentials: the CVE vector is `AV:N/AC:L/PR:N/UI:N`. It depends on reaching the host with a crafted, fragmented IPv6 packet. A host that does not use IPv6, or that filters IPv6 without connection tracking, is not exposed by this path.

## Fixed versions, as of 4 December 2026

| Platform | Status |
|---|---|
| Upstream stable | Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6; also released in the 6.8.y and 7.0.y branches (Ubuntu tracker). Fix commit `48d522b65fb0` |
| Debian 12 (bookworm) | Vulnerable |
| Debian 13 (trixie) | Vulnerable |
| Debian forky / sid | Fixed |
| Ubuntu 24.04 (noble), 22.04 (jammy), and others | Needed (not yet fixed) |
| Proxmox VE 8 (6.8 / 6.14) and 9 (7.0) | Not verified by us; Ubuntu-derived kernels in the affected range — check your vendor advisory |

Distribution build numbers do not match the upstream numbers, so the authoritative answer for your host is your distribution's tracker plus the running build. Where a distribution is still "vulnerable" or "needed", there is no fixed package yet; watch for the update and apply it when it lands.

## Check a host

Three read-only checks. None sends a packet or changes anything.

```bash
# 1. The running kernel: build number, and the upstream base + build date
uname -r
uname -v

# 2. Is IPv6 connection-tracking defrag active? (the precondition)
lsmod | grep nf_defrag_ipv6

# 3. Do any rules track IPv6 connection state?
sudo nft list ruleset | grep -iE 'ip6|ct state' || sudo ip6tables-save 2>/dev/null | grep -i conntrack
```

Compare the kernel against the table above and your distribution's tracker. If `nf_defrag_ipv6` is loaded and the ruleset uses `ct state` on IPv6, an unfixed kernel is exposed.

On one of our own hosts, a server running Ubuntu 24.04, we ran these checks on 4 December 2026. `uname -r` reported `6.8.0-151-generic` and `uname -v` reported a build dated 11 November 2026, which is before the fix and which the Ubuntu tracker still lists as needed; `lsmod` showed `nf_defrag_ipv6` loaded. So that host is affected and awaiting the distribution update. We read the running kernel's changelog and found no mention of this CVE, consistent with the tracker.

## Mitigate until you patch

The kernel patch is the fix. Until a host can run a fixed kernel, the exposure can be reduced by not accepting IPv6 fragments where they are not needed, because the attack requires a fragmented IPv6 packet. In nftables you can match the Fragment extension header and drop it at an early inbound hook.

The trade-off is real and you must weigh it for your own network: some legitimate IPv6 traffic is fragmented, most visibly large DNS-over-UDP answers and some tunnel protocols, so dropping all IPv6 fragments can break those. Apply it only where you can reason about the traffic, such as an inbound edge in front of services that have no reason to receive fragmented IPv6, test it against your real traffic, and keep a written way to undo it. This narrows the attack surface; it does not replace the patch. We have not measured the side effects of this rule on a production network.

## What we did not test

- **The bypass itself.** We did not craft the packet, did not demonstrate conntrack and delivery disagreeing, and did not confirm a firewall accepting blocked traffic. Our evidence that this host is exposed is the kernel version, the tracker status, and the loaded modules, not a reproduction.
- **The packet-crafting technique is not published here.** This is a defensive post; the construction of the malicious extension-header chain is deliberately left out.
- **Proxmox VE's fixed build.** We did not read Proxmox's kernel source or package index for this CVE and name no fixed Proxmox version.
- **The mitigation's side effects.** We did not measure what dropping IPv6 fragments does to a live network.

A controlled reproduction, on an unfixed kernel and a fixed one, is planned as separate work. If we run it, it will be a follow-up at a higher evidence level, linked from here.

## Evidence

| Claim | Status | Basis |
|---|---|---|
| The bug is a u8 that should be int in `find_prev_fhdr()`, wrapping the Next Header offset past byte 255; conntrack can then parse a different tuple than delivery (example: UDP 53 vs 9999) | Verified against a primary source | The CVE record and the kernel source for `net/ipv6/netfilter/nf_conntrack_reasm.c` |
| The one-line fix changes the offset from u8 to int; introduced 2006 (2.6.15), fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 | Verified against a primary source | CVE record, fix commit `48d522b65fb0` |
| CVSS 9.1 (kernel CNA) vs 6.9 (Ubuntu); published 30 November 2026 | Verified against a primary source | The CVE record's two metric entries |
| Debian bookworm and trixie vulnerable; forky and sid fixed; Ubuntu all supported releases needed, as of 4 December 2026 | Verified against a primary source | Debian and Ubuntu security trackers, read 4 December 2026 |
| One [NG-NeXT](https://ngnext.tech) Ubuntu 24.04 host runs 6.8.0-151-generic (build dated 11 Nov 2026) with nf_defrag_ipv6 loaded, so it is affected and unpatched | Tested here | uname -r, uname -v and lsmod on that host, 4 December 2026 |
| The host's running-kernel changelog does not mention this CVE | Tested here | Read the installed kernel's changelog, 4 December 2026 |
| The firewall bypass actually works on this or any kernel | Reported, not reproduced | The CVE record describes the effect; [NG-NeXT](https://ngnext.tech) did not reproduce it |

Not established here: that the bypass works in practice, the exact conditions a real attacker needs, Proxmox VE's fixed build, and the side effects of the fragment-drop mitigation.

## FAQ

### What is CVE-2026-139281 in plain terms?

It is a type-size bug in the Linux kernel's IPv6 connection-tracking code. When the kernel walks an IPv6 packet's chain of extension headers to find the Fragment header, it records the position of the Next Header field just before it. That position is computed as a full integer but saved into a one-byte variable, so a packet whose extension headers run past byte 255 makes the saved position wrap around to a small number. During fragment reassembly the kernel writes to that wrong position, and the result is that the connection-tracking subsystem can parse a different transport tuple (protocol, ports) than the one the kernel uses to deliver the packet. The CVE record gives a concrete example: conntrack records the packet as UDP destination port 53 while the payload is delivered to UDP port 9999.

### Why does that matter for a firewall?

Modern Linux firewalls (nftables, or iptables with conntrack) are stateful: a rule such as 'accept new UDP to port 53, accept established, drop the rest' decides what to allow using the tuple that connection tracking parses. If conntrack can be made to see port 53 while the kernel actually delivers the packet to a service on port 9999, the firewall can accept traffic for a port it was configured to block. The precondition is that the host uses IPv6 connection tracking (the nf_defrag_ipv6 and nf_conntrack modules are loaded, which happens whenever you filter IPv6 statefully). The CVE maintainers rate the confidentiality and integrity impact high and score it 9.1; Ubuntu rates it 6.9. We did not reproduce the bypass ourselves.

### Which kernel versions are fixed?

The CVE record lists the first fixed stable releases as 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 and 7.3.6, and the upstream fix is commit 48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e. Ubuntu's tracker also notes the fix was released upstream in the 6.8.y and 7.0.y stable branches. The bug was introduced in 2.6.15 (2006), so effectively every long-lived kernel before these point releases is affected. Distributions ship their own build numbers, so check your distribution's package version, not only the upstream number. As of 4 December 2026 the Debian tracker marks bookworm and trixie vulnerable and forky and sid fixed, and the Ubuntu tracker marks linux on every supported release (including 24.04 noble and 22.04 jammy) as needed, meaning not yet fixed.

### Is Proxmox VE affected?

Proxmox VE runs an Ubuntu-derived kernel, so the same code and the same timing apply. We did not find a Proxmox security advisory naming CVE-2026-139281, and we did not read Proxmox's kernel source or package index for this CVE, so we state no fixed Proxmox build here. Proxmox VE 9's default kernel is the 7.0 series and Proxmox VE 8's is 6.8 or 6.14; both branches are in the affected range unless your installed build carries a backport. Check the running kernel against your vendor's advisory once one is published, and in the meantime treat a Proxmox host that filters IPv6 with conntrack as exposed.

### How do I tell whether my host is affected?

Three read-only checks. First, compare the running kernel (uname -r for the Ubuntu or Debian build number, uname -v for the upstream base and build date) against the fixed-version table and your distribution's tracker. Second, run lsmod | grep nf_defrag_ipv6: if it is loaded, the host is doing IPv6 defragmentation for connection tracking, which is the precondition. Third, run nft list ruleset (or ip6tables-save) and look for rules that use ct state on IPv6 traffic. A host with an unfixed kernel that filters IPv6 statefully is exposed. None of these checks sends a packet or changes anything.

### What can I do before I can reboot into a fixed kernel?

The direct stop-gap is to stop accepting IPv6 fragments at the edge for networks that have no legitimate need for them, because the attack depends on a fragmented IPv6 packet. In nftables you can match the Fragment extension header and drop it early. The trade-off is real: some legitimate IPv6 traffic is fragmented, most visibly large DNS-over-UDP answers and certain tunnels, so dropping all fragments can break those. Apply it where you can reason about the traffic (for example an inbound edge in front of services that do not expect fragmented IPv6), test it, and keep a way to undo it. This reduces exposure; it is not a substitute for the kernel patch. We have not measured the side effects of this rule on a production network.

### Has this been reproduced in a lab?

No. As of 4 December 2026 this post is built from the CVE record, the kernel.org fix commits, the Debian and Ubuntu trackers, and read-only checks (uname, lsmod) on one [NG-NeXT](https://ngnext.tech) Ubuntu 24.04 host that confirmed it runs an unpatched kernel with IPv6 connection tracking active. We did not build the malicious packet, did not demonstrate the firewall bypass, and do not publish the packet-crafting technique. A controlled reproduction on an unfixed and a fixed kernel is planned as separate work; if we run it, it will be a follow-up post at a higher evidence level.

## References

- CVE-2026-139281, MITRE CVE record: [https://www.cve.org/CVERecord?id=CVE-2026-139281](https://www.cve.org/CVERecord?id=CVE-2026-139281)
- Upstream fix commit `48d522b65fb0`: [https://git.kernel.org/stable/c/48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e](https://git.kernel.org/stable/c/48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e)
- Debian security tracker: [https://security-tracker.debian.org/tracker/CVE-2026-139281](https://security-tracker.debian.org/tracker/CVE-2026-139281)
- Ubuntu security tracker: [https://ubuntu.com/security/CVE-2026-139281](https://ubuntu.com/security/CVE-2026-139281)

## Updated and author

Last updated 2026-12-04 by Nishant Gauraw, [NG-NeXT](https://ngnext.tech).
