OSG-SEC-2026-12-04 CRITICAL Linux kernel IPv6 firewall bypass vulnerability (CVE-2026-139281)
# OSG-SEC-2026-12-04 CRITICAL Linux kernel IPv6 firewall bypass vulnerability (CVE-2026-139281)
Dear OSG Security Contacts,
A critical flaw in the Linux kernel’s Netfilter connection-tracking subsystem may allow a remote, unauthenticated attacker to bypass stateful firewall rules with specially crafted IPv6 fragments [1]. OSG sites should prioritize systems where IPv6 traffic can reach the host and firewall rules are an important barrier protecting services.
## IMPACTED VERSIONS:
Linux kernels containing the vulnerable code and lacking the fix may be affected. The flaw has been in the kernel since the conntrack subsystem was added in version 2.6.15 in January 2006 [4][5] with fixes in stable releases including 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, and 7.3.6. Linux distributions may backport fixes, so determine status using the vendor’s kernel package advisory rather than comparing version numbers alone.
Systems are potentially exposed when they run a vulnerable kernel, IPv6 traffic can reach the affected packet path, and Netfilter conntrack is used to filter that traffic. Having firewalld enabled alone does not confirm exposure.
## WHAT ARE THE VULNERABILITIES:
During IPv6 fragment reassembly, an offset can be truncated, causing conntrack to record a different transport port from the one used to deliver the packet. Crafted traffic may therefore pass a stateful firewall rule and reach a service that the rule was intended to restrict.
This is a firewall bypass; the reported impact is unauthorized access to restricted services. It is not described as direct code execution or a denial of service. A reachable service’s own authentication and access controls still apply.
## WHAT YOU SHOULD DO:
- Inventory Linux hosts, especially systems that accept or forward IPv6 traffic and rely on host firewall rules to protect services.
- Install the fixed kernel package provided by your Linux distribution and reboot so the system loads the updated kernel.
- Red Hat released fixes for RHEL 8 and some others [3]. Fix is also available for AlmaLinux 8 [6] and Rocky Linux 8. Check the advisory for the package versions that apply to your RHEL release.
- If IPv6 is not required, disabling it can mitigate the remote attack path. This disables all IPv6 connectivity on the system, so confirm that IPv6 is not needed before applying this measure.
- Additional Mitigation: If IPv6 must remain enabled, the tc script below may be used as a temporary, defense-in-depth measure to block some potentially malicious IPv6 traffic before it reaches conntrack. It is not a complete mitigation: it checks only the first IPv6 Next Header value and may block legitimate IPv6 traffic. Before running the script, check the existing tc configuration on every interface. The script deletes all priority 1 ingress filters, including unrelated rules, which may affect other traffic. Coordinate with the network administrator before running it if any such filters are present. Continue to prioritize installing the fixed kernel and rebooting.
Note: this needs to run on every reboot.
```
#!/bin/bash
set -e
# Apply to all non-loopback network interfaces
for IFACE in \$(ls /sys/class/net | grep -v '^lo\$'); do
tc qdisc replace dev "\$IFACE" handle ffff: ingress 2>/dev/null || continue
# Clear existing prio 1 filters to make execution idempotent
tc filter del dev "\$IFACE" parent ffff: prio 1 2>/dev/null || true
# Drop IPv6 packets with Next Header \= Hop-by-Hop (0x00), Routing (0x2b), Dest Options (0x3c)
tc filter add dev "\$IFACE" parent ffff: protocol ipv6 prio 1 u32 match u8 0x00 0xff at 6 action drop
tc filter add dev "\$IFACE" parent ffff: protocol ipv6 prio 1 u32 match u8 0x2b 0xff at 6 action drop
tc filter add dev "\$IFACE" parent ffff: protocol ipv6 prio 1 u32 match u8 0x3c 0xff at 6 action drop
done
```
## REFERENCES
[1] https\://access.redhat.com/security/cve/cve-2026-139281
[2] https\://ubuntu.com/security/CVE-2026-139281
[3]https\://access.redhat.com/errata/RHSA-2026:107608
[4 ]https\://kernel.googlesource.com/pub/scm/linux/security/vulns/+/refs/heads/sasha-cvss-important/cve/published/2026/CVE-2026-139281.mbox
[5] https\://thehackernews.com/2026/12/critical-21-year-old-linux-kernel-flaw.html?m=1
[6] https\://errata.almalinux.org/8/ALSA-2026-107608.html
[7] https\://errata.rockylinux.org/RLSA-2026:107608
[8] https\://security-tracker.debian.org/tracker/CVE-2026-139281
Please contact the OSG security team at [email protected] if you have any questions or concerns.
OSG Security Team