Quick answer

CVE-2026-139281 (CVSS 9.1) is a critical flaw in the Linux kernel's Netfilter IPv6 connection-tracking subsystem (nf_conntrack). In find_prev_fhdr(), an int offset pointing to the Next Header field before an IPv6 Fragment header is truncated into an unsigned 8-bit integer (u8). When an extended IPv6 header chain pushes that offset past byte 255, the wrapped offset corrupts header reassembly, tricks conntrack into recording the wrong transport tuple, and lets unauthenticated remote traffic bypass stateful nftables/ip6tables/ufw rules. Do not judge exposure from uname -r alone: check your distribution's security tracker, apply the patched kernel package, reboot, and audit IPv6 independently of IPv4.

Key takeaways
01

Root cause: u8 integer truncation in find_prev_fhdr() during IPv6 fragment reassembly causes nf_conntrack to misparse ports/protocols on long IPv6 extension header chains.

02

Not every Linux host is equally exposed: Exposure depends on whether IPv6 is enabled, whether stateful Netfilter rules (ESTABLISHED,RELATED / conntrack) guard reachable services, and whether your distro kernel already carries the backported fix.

03

Upstream version numbers lie: Ubuntu, Debian, Red Hat, and AlmaLinux backport security patches without bumping the upstream kernel number. Check package versions against vendor trackers.

04

Fast temporary mitigation: If you cannot reboot immediately, drop IPv6 fragments at the firewall or disable IPv6 if your workload does not require it, then schedule a maintenance reboot.

1. What happened in CVE-2026-139281

Disclosed in late November 2026 and drawing wider security coverage in early December, CVE-2026-139281 affects legacy Linux Netfilter IPv6 fragment-handling code dating back roughly two decades.

Here is the exact failure mechanism inside the kernel:

  1. A remote attacker sends crafted IPv6 packets containing a long chain of IPv6 extension headers followed by a Fragment header.
  2. During reassembly, find_prev_fhdr() calculates the byte offset of the Next Header field preceding the Fragment header via an int pointer, then stores it into a local u8 (max value 255).
  3. If the header chain pushes the offset past 255, the u8 wraps around.
  4. Netfilter writes the updated Next Header value to the wrong offset in the reassembled header chain, causing nf_conntrack to track a bogus transport tuple (different protocol or port than what the local socket actually receives).
  5. Stateful firewall rules that rely on connection tracking can then admit traffic that should have been dropped.

Severity ratings and patch timelines vary across distributions depending on default kernel configs and backport status. Treat any internet-facing Linux VPS with IPv6 enabled and stateful firewalling as a priority check.

2. How to check if your Linux VPS is vulnerable

A common mistake is comparing uname -r against upstream kernel.org versions. Enterprise Linux distributions routinely backport fixes into older kernel branches. Always check both your running kernel and your installed package version against your vendor's official tracker.

Step 1: Identify your distribution and running kernel

cat /etc/os-release
uname -a

Step 2: Check the installed kernel package version

# Ubuntu / Debian
dpkg -l 'linux-image-*' | grep '^ii'

# RHEL / AlmaLinux / Rocky Linux
rpm -q kernel
rpm -q --changelog kernel-$(uname -r) | grep -i CVE-2026-139281

Step 3: Cross-reference your distribution's security tracker

DistributionOfficial TrackerWhat to Verify
Ubuntu (22.04, 24.04 LTS, etc.)ubuntu.com/security/CVE-2026-139281Exact linux-image-* package & ABI version for your kernel flavor (generic, kvm, aws, hwe)
Debian (Bookworm, Trixie)security-tracker.debian.org/tracker/CVE-2026-139281Fixed src:linux package version in bookworm-security or trixie-security
RHEL / AlmaLinux / Rockyaccess.redhat.com/security/cve/CVE-2026-139281Errata RHSA advisory and rpm -q --changelog entry on the booted kernel

Checked 4 December 2026. Distribution advisories update continuously as fixed builds ship.

If dpkg or rpm shows a patched kernel package is installed, verify that uname -r actually matches it. Installing a kernel update without rebooting leaves the vulnerable kernel running in memory.

3. How to patch CVE-2026-139281 (Ubuntu, Debian, AlmaLinux)

Take a fresh snapshot or verify your automated backup before applying kernel updates to a production server.

Ubuntu and Debian

sudo apt update
sudo apt full-upgrade -y

Check whether a reboot is pending and confirm the new kernel is listed as the default boot target:

test -f /var/run/reboot-required && cat /var/run/reboot-required
sudo reboot

RHEL, AlmaLinux, and Rocky Linux

sudo dnf clean all
sudo dnf upgrade -y kernel
sudo needs-restarting -r || sudo reboot

Post-reboot verification

After the VPS comes back online, confirm the booted kernel is the updated package:

uname -r
# Ubuntu / Debian: confirm running kernel package version
dpkg -S /boot/vmlinuz-$(uname -r)
# RHEL / AlmaLinux / Rocky: confirm CVE fix in booted kernel changelog
rpm -q --changelog kernel-$(uname -r) | grep -i CVE-2026-139281

4. Temporary mitigations if you cannot reboot immediately

If you are waiting for a scheduled maintenance window or waiting for a specific distribution kernel build to publish:

5. Audit your Linux VPS IPv6 firewall independently of IPv4

One of the biggest operational blind spots on dual-stack VPS hosts is assuming an IPv4 firewall covers IPv6. It does not unless you verify both address families explicitly.

# 1. List every service listening on IPv6 (look for [::]:PORT)
sudo ss -tulnp6

# 2. Inspect active nftables ruleset (modern Ubuntu/Debian/RHEL)
sudo nft list ruleset

# 3. Inspect legacy ip6tables rules (if still in use)
sudo ip6tables -L -n -v

# 4. If using UFW, verify IPV6=yes in /etc/default/ufw
grep '^IPV6=' /etc/default/ufw
sudo ufw status verbose

If you run Docker alongside UFW on Ubuntu, remember that Docker's own iptables/ip6tables chains can also bypass UFW rules for published container ports. See our dedicated walkthrough on fixing Docker UFW firewall bypass on Ubuntu.

Finally, test your external reachability from outside your VPS using our Port Checker or Looking Glass, and if you want an isolated sandbox to validate kernel updates before touching production, you can spin up a clean KVM instance on PrivateByte Servers starting at $5.99/mo with automated daily backups included.