Site icon GetPageSpeed

CVE-2026-139281 on CentOS 7: IPv6 Firewall Bypass, Fixed Kernel

CVE-2026-139281 on CentOS 7: IPv6 Firewall Bypass, Fixed Kernel

CVE-2026-139281 is a firewall bypass in the Linux kernel’s IPv6 connection tracking. A crafted pair of IPv6 fragments makes nf_conntrack record one destination port while the kernel delivers the packet to another, so a rule that allows one port lets traffic reach a different one. No login is needed. The kernel.org CNA scores it 9.1, and Red Hat rates it Critical. Red Hat fixed RHEL 7 on 2026-12-04, but only for paying Extended Life Cycle Support customers; CentOS 7 gets nothing. GetPageSpeed’s Everpatch Kernel has carried the fix since kernel-lt 6.18.65-1, published on 2026-11-23, a week before the CVE went public. It is free for any use, commercial production included, installs next to your current kernel and takes effect on reboot.

Fact Detail
CVE-2026-139281 netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset
CVSS 3.1 9.1 (kernel.org CNA, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N); Red Hat: Critical, 9.1
Impact Stateful IPv6 firewall bypass: conntrack sees one transport port, the packet reaches another. No memory corruption and no crash
Reach Any host that receives routable IPv6 and runs IPv6 connection tracking (firewalld or ip6tables with state rules)
Affected since Linux 2.6.15 (2006)
Fixed upstream 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6
CentOS 7 stock kernel 3.10, affected. Red Hat’s fix, kernel-3.10.0-1160.173.1.el7 (RHSA-2026:108700), is for RHEL 7 ELS subscribers only
CentOS 7 fix kernel-lt 6.18.65-1.el7 or later from the GetPageSpeed corecare channel (x86_64); current 6.18.66-1.el7
CentOS 8 4.18 kernel affected; fixed in RHEL 8’s 4.18.0-553.193.1.el8_10 (see below)

How to fix CVE-2026-139281 on CentOS 7

Check the running kernel first:

uname -r

Already on Everpatch Kernel (a version that starts with 6.18 and ends in .el7.x86_64)? Versions from 6.18.65-1 on are fixed. On an older one (6.18.62 or 6.18.64), update it, check the default and reboot:

yum -y update 'kernel-lt*'
grubby --default-kernel
reboot

grubby --default-kernel must print /boot/vmlinuz-6.18.66-1.el7.x86_64 before you reboot; if it prints an older kernel, run grub2-set-default 0 and check again. A server can have the fixed package installed and still run the vulnerable kernel: uname -r after the reboot is the check that counts, not rpm -q.

On the stock 3.10.0 kernel or an ELRepo kernel, install it:

yum -y install https://extras.getpagespeed.com/release-latest.rpm
yum -y install yum-utils
yum-config-manager --enable getpagespeed-extras-corecare
yum -y install kernel-lt
grub2-set-default 0
grubby --default-kernel
reboot

The first command also repoints CentOS 7’s dead mirrorlist.centos.org entries at a maintained vault, so yum works again on servers where it had stopped.

Do not skip grub2-set-default 0. yum installs the new kernel, but the old one stays the default, so a plain reboot brings the vulnerable kernel straight back. Before you reboot, grubby --default-kernel must print:

/boot/vmlinuz-6.18.66-1.el7.x86_64

After the reboot, uname -r prints 6.18.66-1.el7.x86_64. The channel stays enabled, so yum update delivers later kernels the same way.

Kernel fixed? The PHP on the same server is usually the bigger hole. Remi stopped building PHP for EL7 in June 2024, so if this box serves PHP, see PHP2Shell on CentOS 7: patched builds for every version from 5.4 to 8.4, free to install. Commercial production use needs GetPageSpeed Ultra ($500/year, up to 10 of your own servers) or GetPageSpeed Fleet for servers you run for clients (from $800/year), and that is what funds the next backport. The kernel stays free either way.

What CVE-2026-139281 is

Before connection tracking can classify a fragmented IPv6 packet, the kernel reassembles it. While doing so, find_prev_fhdr() finds the “Next Header” byte that sits just before the Fragment header, so the reassembled packet can point past it. The kernel stored that byte’s offset in an 8-bit variable.

The CVE record describes what goes wrong. A sender adds enough extension headers to push that byte past offset 255. The offset wraps, and reassembly overwrites a different byte in the header chain. Conntrack then parses a different transport header than the one the packet is delivered with. In the record’s example, a two-fragment packet is recorded as UDP destination port 53 while its payload goes to UDP port 9999.

So a stateful IPv6 rule that admits one port, or one flow, can be used to reach a port the firewall was supposed to keep closed. Reassembly runs before any rule or socket lookup, and the sender needs no account. The flaw does not corrupt memory outside the packet and does not crash the kernel; the damage is to what your firewall believes it let in. That is why Red Hat’s statement talks about restricted internal services receiving traffic that bypasses filtering.

The truncation dates from Linux 2.6.15, so every CentOS 7 kernel carries it. Red Hat confirms RHEL 7 is affected by shipping a fix for it, in RHSA-2026:108700 for Extended Life Cycle Support subscribers.

CVE-2026-139281 is not on the CISA Known Exploited Vulnerabilities list at the time of writing.

Is your server exposed?

The bug needs two things: IPv6 packets reaching the server, and IPv6 connection tracking loaded. Check both:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6
ip -6 addr show scope global
lsmod | grep -E '^nf_(defrag|conntrack)_ipv6'

The server is exposed when all of these hold:

A server on an IPv4-only network is not reachable through this bug, but check that, not your assumptions: many hosting providers hand out IPv6 by default.

Stopgap if you cannot reboot yet

Red Hat gives one mitigation: turn IPv6 off. Only do it on a server that does not need IPv6:

cat > /etc/sysctl.d/90-disable-ipv6.conf <<'EOF'
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
EOF
sysctl -p /etc/sysctl.d/90-disable-ipv6.conf

On a CentOS 7 test server this set disable_ipv6 to 1 and removed every IPv6 address from the interface. Turning IPv6 off removes the exposure, not the bug. Install the fixed kernel and reboot as soon as you can, then delete the file if you need IPv6 back.

Which CentOS 7 kernels are affected

Kernel Final or current version CVE-2026-139281 What to do
Stock kernel 3.10.0-1160.119.1 Affected; fixed only in RHEL 7 ELS (1160.173.1) Install the fixed kernel
ELRepo kernel-lt 5.4.278, June 2024 Affected; the 5.4 line ended without a fix Install the fixed kernel
ELRepo kernel-ml 6.9.7, June 2024 Affected, no fix Install the fixed kernel
Everpatch Kernel 6.18.62 and 6.18.64 builds 6.18.64-1 Affected yum -y update 'kernel-lt*' and reboot
Everpatch Kernel 6.18.65-1 and later 6.18.66-1 Fixed Confirm with uname -r

CentOS 8

CentOS Linux 8 ended on 2021-12-31 and CentOS Stream 8 on 2024-05-31, so neither receives Red Hat’s fix. Their 4.18 kernel is affected: Red Hat fixed RHEL 8 on 2026-12-03 in RHSA-2026:107608, kernel 4.18.0-553.193.1.el8_10.

GetPageSpeed does not ship a kernel for EL8, and you do not need one for this. AlmaLinux 8 (ALSA-2026:107608, 2026-12-03) and Rocky Linux 8 (RLSA-2026:107608, 2026-12-04) already ship kernel-4.18.0-553.193.1.el8_10 with this fix. A CentOS 8 server is one in-place conversion away from a free, vendor-fixed kernel: almalinux-deploy or Rocky’s migrate2rocky. Check that the tool supports your starting point (CentOS Linux 8 or Stream 8), take a backup, convert, then dnf -y update kernel and reboot. Until then, the stopgap above applies to CentOS 8 as well.

Moving to 6.18

Everpatch Kernel uses the same kernel-lt package name as ELRepo and installs side by side, so your old kernel stays on disk and in GRUB.

Both command blocks above were run end to end against the live repository on the CentOS 7 GenericCloud 2211 image under KVM on 2026-12-05. From the stock 3.10 kernel, yum -y install kernel-lt left 3.10.0 as the default until grub2-set-default 0 moved it, and the server came back on 6.18.66-1.el7.x86_64. From a server booting kernel-lt 6.18.64-1, yum -y update 'kernel-lt*' alone made 6.18.66-1 the default, and a plain reboot came up on it. Both ended untainted, with firewalld active, its IPv6 state rules in place, the network up and no failed systemd units.

On a remote server with no console, you can use grub2-reboot 0 instead of grub2-set-default 0 for the first reboot. It boots the new kernel once, and the next reboot returns to the old default if the new kernel fails to come up. Run grub2-set-default 0 once the new kernel is running, or that next reboot brings the old kernel back.

If something on the new kernel breaks, go back to the old one:

grubby --set-default /boot/vmlinuz-3.10.0-1160.119.1.el7.x86_64
reboot

Use your own version in the path. This restores the vulnerable kernel, so treat it as a way to get a server running again, not as a place to stay.

Everpatch Kernel is x86_64 only, perf is not built yet, and there is no live patching, so taking the fix means a reboot.

FAQ

Is the stock CentOS 7 kernel affected by CVE-2026-139281?

Yes. Red Hat rates the flaw Critical and fixed it for RHEL 7 in kernel-3.10.0-1160.173.1.el7, which ships only to Extended Life Cycle Support subscribers. CentOS 7 reached end of life in June 2024, and its last kernel is 3.10.0-1160.119.1.

Can I install Red Hat’s RHEL 7 ELS kernel on CentOS 7?

Only with a Red Hat ELS subscription: the packages ship from a paid Red Hat channel, and no CentOS mirror carries them. Everpatch Kernel is the free route.

Is this a remote code execution bug?

No. It does not corrupt kernel memory and does not crash the server. It lets IPv6 traffic past firewall rules that should have stopped it, which matters most for services you only meant to expose internally.

My server has no IPv6 address. Am I affected?

Not through this bug, as long as nothing routes IPv6 to it. Check ip -6 addr show scope global rather than assuming: many providers enable IPv6 by default, and router advertisements can configure an address on their own.

Why did Everpatch Kernel have the fix before the CVE?

The fix went into the 6.18 stable branch in 6.18.65, and Everpatch Kernel follows that branch. Version 6.18.65-1 shipped on 2026-11-23, and the CVE was published on 2026-11-30. Servers that kept yum update running and rebooted were fixed before the bug had a CVE.

Do I need a GetPageSpeed subscription for the kernel fix?

No. The Everpatch Kernel channel is free for any use, commercial production included, and there is no signup. Packages are signed with the GetPageSpeed key.

Does the fix need a reboot?

Yes. A new kernel only takes effect after a reboot. The stopgap above closes the exposure until then, if the server can live without IPv6.

Conclusion

CVE-2026-139281 lets crafted IPv6 fragments slip past stateful firewall rules on every CentOS 7 kernel: the stock 3.10 kernel, the frozen ELRepo kernels, and Everpatch Kernel builds older than 6.18.65. Red Hat’s RHEL 7 fix is for paying ELS customers. kernel-lt 6.18.65 and later fix it, under the same package name and free for any use. On CentOS 8, convert to AlmaLinux or Rocky Linux 8 and take their fixed kernel.

The same update also fixes NFS2ROOT (CVE-2026-99362) on CentOS 7.

The rest of the stack has its own clock. If the same server runs PHP, PHP2Shell on CentOS 7 is the next thing to check, and Everpatch for CentOS 7 covers the kernel, PHP and maintained base OS packages together. Everpatch PHP is free to install for personal, development and evaluation use; commercial production use requires GetPageSpeed Ultra ($500/year, up to 10 servers running your own services). Administering servers for clients, or more than 10? GetPageSpeed Fleet starts at $800/year. The kernel stays free either way.

Exit mobile version