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.
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.
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.
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.
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:
- A remote attacker sends crafted IPv6 packets containing a long chain of IPv6 extension headers followed by a Fragment header.
- During reassembly,
find_prev_fhdr()calculates the byte offset of theNext Headerfield preceding the Fragment header via anintpointer, then stores it into a localu8(max value255). - If the header chain pushes the offset past
255, theu8wraps around. - Netfilter writes the updated
Next Headervalue to the wrong offset in the reassembled header chain, causingnf_conntrackto track a bogus transport tuple (different protocol or port than what the local socket actually receives). - 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
| Distribution | OFOfficial Tracker | WHWhat to Verify |
|---|---|---|
| Ubuntu (22.04, 24.04 LTS, etc.) | ubuntu.com/security/CVE-2026-139281 | Exact linux-image-* package & ABI version for your kernel flavor (generic, kvm, aws, hwe) |
| Debian (Bookworm, Trixie) | security-tracker.debian.org/tracker/CVE-2026-139281 | Fixed src:linux package version in bookworm-security or trixie-security |
| RHEL / AlmaLinux / Rocky | access.redhat.com/security/cve/CVE-2026-139281 | Errata 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:
- Option A (Disable IPv6 if unused): Red Hat's advisory notes that temporarily disabling IPv6 removes the attack surface on hosts that do not serve IPv6 traffic:
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 - Option B (Restrict sensitive services to localhost / private WireGuard interface): Never rely solely on a host firewall to shield databases (
5432,6379,3306) or admin panels. Bind them to127.0.0.1/::1or a private tunnel interface.
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.
