CVE-2026-98432: check your Linux server and close public ports
By Flavio
Updated
Tagged: Security
CVE-2026-98432 is a Linux IPv4 TCP use-after-free. Check your kernel, treat disabling MPTCP as a stop gap, then patch and close every public port on the VPS.
On 1 November 2026, Pieter Levels wrote that a VPS should keep every port closed. SSH stays on Tailscale. Web traffic arrives through a Cloudflare Tunnel. He called disabling MPTCP a stop gap, and closing public ports the better move.
Levels quoted Ali Yahya’s post, which says any unpatched Linux server with one TCP port exposed, and MPTCP active, is open to complete takeover, and he describes MPTCP as the default for many Go web servers. That post quotes Tobi Lütke, who linked a write-up of CVE-2026-98432.
The CVE is real, but be careful with the “MPTCP is required” part. The kernel record describes a remote use-after-free in the IPv4 TCP handshake. The Go security team says one demonstrated exploit needs an MPTCP listener, and that the bug itself is not specific to MPTCP.
Here’s how to check a server, apply the stop gap, patch, and end up with no public ports. The long versions of the tunnel and the tailnet are in Cloudflare Tunnel and a VPS with Tailscale and a tunnel. Trackers move, so read the tracker for your distro again on the day you patch. The same CVE is a Needs attention briefing on Cloudflare Zero Wire, with a checklist and an agent prompt.
What is CVE-2026-98432?
CVE-2026-98432 is a use-after-free in the Linux kernel’s IPv4 TCP handshake. NVD published the record on 15 October 2026 and last modified it on 31 October 2026. NVD’s status is still “Received”, and the description on the page is the kernel CNA text.
During a handshake, tcp_v4_syn_recv_sock() hands ireq->ireq_opt to the child socket without copying it. Another CPU can still be reading those options, under rcu_read_lock() only, while it builds a SYN-ACK for a retransmitted SYN. The child socket can be freed in the middle of that. inet_sock_destruct() frees the options with a plain kfree(), and ip_options_build() uses the freed memory.
The kernel text says this became possible with commit 079096f103fa (“tcp/dccp: install syn_recv requests into ehash table”), which put request sockets on a path that no longer holds the listener lock. NVD marks kernels older than 4.4 unaffected, and 4.4 as affected.
A second path in the same text is request-socket migration, when net.ipv4.tcp_migrate_req=1 or a BPF_SK_REUSEPORT_SELECT_OR_MIGRATE program clones a request and the clone shares ireq_opt. tcp_v4_reqsk_destructor() also used a plain kfree().
The fix uses kfree_rcu() in inet_sock_destruct() and tcp_v4_reqsk_destructor(), so readers that already use RCU finish before the memory goes away. NVD links the stable commits, including e3f33b0a1d89, which Debian’s tracker notes as 7.3-rc7. The fixed version on each stable line is in the next section.
IPv6 is not affected by the first issue, because tcp_v6_syn_recv_sock() duplicates the options. The same text says tcp_v6_reqsk_destructor() has the same migration issue with ipv6_opt, which only CALIPSO sets, and that this will be a separate patch. So an IPv6-only listener is not a reason to skip the kernel update.
NVD’s CVSS data is a secondary metric from the kernel CNA, not an NVD analysis of its own:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
That is 9.8, Critical. Network, low complexity, no privileges, no user interaction, unchanged scope, high impact on confidentiality, integrity, and availability.
Ubuntu’s page shows that same 9.8 Critical vector, and also a CVSS 4.0 score of 8.3 High:
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
Ubuntu’s own priority label is High. Red Hat’s CVE data rates the threat Critical, with the 9.8 vector marked draft. Red Hat says an unauthenticated remote attacker can cause kernel memory corruption or an immediate crash over ordinary IPv4 TCP, and that reliable arbitrary code needs precise heap control.
The Go security note, forwarded to oss-security on 29 October 2026, describes an exploit written up by Anthropic that reaches remote code execution against a server using MPTCP listeners. So the sources agree on the bug and differ on how confident they are about code execution.
Which kernels are fixed upstream?
NVD’s affected data, from the kernel CNA, lists these as unaffected on each stable line. A version on that line is unaffected once it is at least the number in the first column, and at most the wildcard in the second.
| Unaffected from | Through |
|---|---|
| 5.10.272 | 5.10.* |
| 5.15.223 | 5.15.* |
| 6.1.190 | 6.1.* |
| 6.6.159 | 6.6.* |
| 6.12.113 | 6.12.* |
| 6.18.56 | 6.18.* |
| 7.2.10 | 7.2.* |
| 7.3 | later versions, marked original_commit_for_fix |
Anything from 4.4 up to those points is in the affected range NVD published. Distro kernels use their own numbers. Ubuntu’s 6.8.0-147 is a package version, so don’t read it as “6.8, somewhere between 6.6 and 6.12”. Compare it with Ubuntu’s tracker instead.
NVD also lists the fixing commit hashes. The 6.12 one is 11a03ce3c4a6, the 6.1 one is 89b5b1eb7d63, and the rest are on the NVD reference list.
Is MPTCP required?
The kernel CVE text never mentions MPTCP. The files it names are net/ipv4/af_inet.c and net/ipv4/tcp_ipv4.c.
The Go security team is explicit. The demonstrated exploit needs an MPTCP listener, but the underlying bug is not specific to MPTCP, and systems with no MPTCP listeners can still be open to similar attacks. They call a per-program disable “a fragile mitigation” and say the best fix is a patched kernel. Whether Go itself should change the default is discussed on issue 82717. As of that 29 October note, they were not changing Go’s default because of this bug.
So disabling MPTCP cuts off the path that write-up demonstrated, and leaves the use-after-free in the IPv4 handshake. Treat it as a stop gap while you patch, which is what Levels said, and keep going until the kernel is fixed and strangers cannot open a TCP connection to the machine.
Go listeners and the default
Go’s GODEBUG history says Go 1.24 added four values for multipathtcp:
| Value | Meaning |
|---|---|
| 0 | Disable MPTCP on dialers and listeners by default |
| 1 | Enable MPTCP on dialers and listeners by default |
| 2 | Enable MPTCP on listeners only by default |
| 3 | Enable MPTCP on dialers only by default |
For Go 1.24, the default is multipathtcp=2. Listeners use MPTCP when the operating system allows it. 0 is the pre-1.24 behavior.
That default follows the Go version in the main module. When a newer toolchain compiles a module whose go line is older, the godebug rules amend defaults back toward that older version. A repo that still says go 1.22 does not pick up the 1.24 listener default just because the compiler is newer. A repo that says go 1.24 or later does, unless a godebug line overrides it.
net.ListenConfig.SetMultipathTCP and net.Dialer.SetMultipathTCP override the GODEBUG setting, as the Go security note says. The methods are documented on ListenConfig and Dialer.
Yahya’s “default for many Go web servers” is true for a Go 1.24+ module on a kernel where MPTCP is enabled. It’s not true for every Go binary, and the kernel bug doesn’t need it anyway.
How do you check whether you are exposed?
You need to know four things: the running kernel, whether MPTCP is on, which TCP ports are listening on which addresses, and whether a Go program is one of the listeners that asked for MPTCP.
Run these commands on the server. The sample output comes from an Ubuntu 24.04.5 machine with a custom kernel, so your numbers will differ.
Kernel version
uname -r
uname -v
On that machine:
6.12.94+
#1 SMP PREEMPT_DYNAMIC Tue Oct 27 12:38:43 UTC 2026
6.12.94 is numerically below NVD’s fixed line of 6.12.113. The + means this build is not a kernel.org stable tarball and not a distro package, so treat the comparison as a hint until the package tracker agrees.
Then ask the package manager what it would install.
Ubuntu and Debian:
dpkg-query -W -f='${Package} ${Version}\n' 'linux-image*'
apt-cache policy linux-image-generic
On the same machine no linux-image* package was installed at all, and apt-cache policy linux-image-generic showed a candidate of 6.8.0-147.147 from noble-updates and noble-security. Ubuntu’s tracker lists the 24.04 fix as work in progress in 6.8.0-149.149. The running kernel and the archive package were two different things. That happens with a provider kernel, a cloud image, or a backports package, so read both numbers.
On RHEL and the clones that use dnf:
rpm -q kernel
uname -r
Match the package to the row on your distro’s tracker. A newly installed kernel only becomes the running one after a reboot, so uname -r before the reboot still shows the old one.
MPTCP
The kernel documents net.mptcp.enabled as a boolean, per network namespace. Sockets can be created when the value is 1, and the documented default is 1. A distro can ship a different value, so read it:
sysctl net.mptcp.enabled
On that machine:
net.mptcp.enabled = 1
ss from iproute2 shows MPTCP sockets with -M (--mptcp, “display only MPTCP sockets” in ss --help):
ss -Mlnp
That lists listening MPTCP sockets, numeric, with the process name. When nothing on the machine is an MPTCP socket, it prints only the header:
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
A container has its own network namespace, so sysctl on the host does not answer for the container. Run it inside the container too.
Listening ports
ss -tlnp
-t is TCP, -l is listening, -n skips DNS, -p shows the process. Here’s an illustrative output for a small web server, not copied from a real machine:
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=812,fd=3))
LISTEN 0 511 0.0.0.0:80 0.0.0.0:* users:(("nginx",pid=1034,fd=6))
LISTEN 0 511 0.0.0.0:443 0.0.0.0:* users:(("nginx",pid=1034,fd=7))
LISTEN 0 4096 127.0.0.1:8000 0.0.0.0:* users:(("server",pid=1210,fd=3))
LISTEN 0 4096 [::]:22 [::]:* users:(("sshd",pid=812,fd=4))
Look at the local address column. 127.0.0.1 and [::1] are loopback, so the app on port 8000 is only reachable from the machine itself. 0.0.0.0 means every IPv4 address, and [::] or * every address. Those are the listeners a public interface can reach, here sshd and nginx, if the host firewall and the cloud firewall allow it.
ss cannot see the cloud firewall. A port in this list can still be blocked upstream, and a port missing here is not open on this host.
To see what the internet sees, scan the public address from outside. That step comes later, after you have a way back in.
Is the Go binary using MPTCP?
ss -Mlnp is the direct check. If your server’s process is on that list, the socket is MPTCP.
If you have the source, look at the toolchain and the module:
go version
A Go 1.22 toolchain, which prints something like go version go1.22.2 linux/amd64, predates the listener default. A binary it builds keeps MPTCP off unless the code calls SetMultipathTCP(true).
In a Go 1.24 or newer module, open go.mod. A go 1.24 line (or later) plus no godebug multipathtcp=0 means listeners default to MPTCP when the kernel allows it. go list -f '{{.DefaultGODEBUG}}' prints the defaults that differ from the base toolchain, which is how you see the effective multipathtcp value for that module.
How do you disable MPTCP?
This stops new MPTCP sockets and leaves the use-after-free in place. Ordinary TCP keeps working, and you lose multipath connections, which most web servers were not relying on. Restart the listeners after the sysctl, then run ss -Mlnp again to confirm nothing is left, including sockets that were open before the change.
Write a file under /etc/sysctl.d/ so a reboot keeps the setting:
echo 'net.mptcp.enabled=0' | sudo tee /etc/sysctl.d/90-disable-mptcp.conf
sudo sysctl -p /etc/sysctl.d/90-disable-mptcp.conf
sysctl net.mptcp.enabled
You want net.mptcp.enabled = 0.
The value is per namespace, so set it in each container namespace you care about, or confirm the container inherited it. If you plan to pass --sysctl net.mptcp.enabled=0 to Docker, read Docker’s sysctl documentation first.
Go, on top of the sysctl
The sysctl is the broad switch. The Go settings help when a later config turns MPTCP back on, or when you cannot change the host sysctl yet. The Go team still calls the program-by-program switch fragile, because one forgotten listener is enough for the demonstrated exploit.
For one process, at runtime:
GODEBUG=multipathtcp=0 ./server
For every build of the main module, in go.mod:
go 1.24
godebug multipathtcp=0
For one listener, in code. SetMultipathTCP overrides GODEBUG.
package main
import (
"context"
"fmt"
"net"
)
func main() {
lc := net.ListenConfig{}
lc.SetMultipathTCP(false)
ln, err := lc.Listen(context.Background(), "tcp", "127.0.0.1:8080")
if err != nil {
panic(err)
}
defer ln.Close()
fmt.Println("listening on", ln.Addr())
}
false means this listener does not request MPTCP. The kernel still has to be patched.
Red Hat’s packet filter
Red Hat’s bulletin RHSB-2026-016 publishes a different stop gap. The page’s public date is 30 October 2026, 16:03, and the bulletin status is Ongoing. The rule drops incoming IPv4 TCP packets that contain IP options. Ordinary TCP options live in the TCP header and are not matched by it.
Red Hat says filtering can reduce exposure, can disrupt real workloads, cannot fully prevent the bug, and is not a substitute for patching. Test it before production. This is their rule, saved as cve-2026-98432.nft:
table inet cve_2026_98432 {
chain input {
type filter hook input priority -310; policy accept;
ip protocol tcp ip hdrlength > 5 counter drop
}
}
sudo nft --check --file cve-2026-98432.nft
sudo nft --file cve-2026-98432.nft
sudo nft list table inet cve_2026_98432
After the kernel is fixed, remove it:
sudo nft delete table inet cve_2026_98432
How do you patch?
Find the fixed package on the tracker for the release you run. Install it, reboot, and check uname -r again. If the tracker still says vulnerable, you’re running the newest package you could get, and it still has the bug.
Ubuntu
Ubuntu’s CVE page was last updated 3 November 2026, still with no fixed release and no USN. Publication date on the page is 15 October 2026. Ubuntu Livepatch has nothing to apply until a fixed kernel exists.
For the linux package, the page lists:
| Release | Status on the page |
|---|---|
| 26.10 | Vulnerable, work in progress in 7.3.0-10.10 |
| 26.04 LTS | Vulnerable, work in progress in 7.0.0-43.43 |
| 24.04 LTS | Vulnerable, work in progress in 6.8.0-149.149 |
| 22.04 LTS | Vulnerable, work in progress in 5.15.0-203.213 |
| 20.04, 18.04, 16.04 | Vulnerable |
| 14.04 | Not affected |
HWE, cloud, and OEM kernels have their own rows, and Ubuntu builds a lot of them. linux-hwe-6.8 on jammy is work in progress in 6.8.0-149.149~22.04.1. Several other HWE kernels are Vulnerable with no fix version yet. Use the tracker row for the package uname -r belongs to.
When a fixed package is in the archive, upgrade and reboot:
sudo apt update
apt-cache policy linux-image-generic
sudo apt upgrade
sudo reboot
linux-image-generic is the common metapackage on a desktop-style Ubuntu install. A cloud image or an HWE kernel uses a different name. If apt-cache policy does not match the kernel you are running, find the package with dpkg -l 'linux-image*' before you assume the upgrade touched it.
Debian
Debian’s security tracker, as of 1 November 2026:
| Suite | Version on the page | Status |
|---|---|---|
| bookworm | 6.1.176-1 | vulnerable |
| bookworm security | 6.1.190-1 | fixed, DLA-4841-1 |
| bookworm linux-6.12 security | 6.12.113-1~deb12u1 | fixed, DLA-4850-1 |
| trixie | 6.12.107-1 | vulnerable |
| trixie security | 6.12.115-2 | fixed (first fix 6.12.113-1, DSA-6568-1) |
| forky | 7.2.12-1 | fixed |
| sid | 7.2.15-1 | fixed |
The tracker’s fixed-version table lists unstable linux at 7.2.10-1, and sid has since moved on to 7.2.15-1. The note on the page points at e3f33b0a1d89 as 7.3-rc7.
On bookworm or trixie, install security updates and reboot:
sudo apt update
apt-cache policy linux-image-amd64
sudo apt upgrade
sudo reboot
uname -r
Then compare uname -r with the security-suite version, not with the base suite. A bookworm machine still on 6.1.176-1 has not taken DLA-4841-1.
RHEL and the family
Red Hat has shipped fixed kernels. As of 4 November 2026, its CVE data lists these advisories for the main streams:
| Product | Advisory | Fixed package |
|---|---|---|
| RHEL 10 | RHSA-2026:93413 | kernel-6.12.0-211.72.1.el10_2 |
| RHEL 9 | RHSA-2026:93412 | kernel-5.14.0-687.64.1.el9_8 |
| RHEL 8 | RHSA-2026:93414 | kernel-4.18.0-553.182.1.el8_10 |
| RHEL 8 real time | RHSA-2026:93415 | kernel-rt-4.18.0-553.182.1.rt7.523.el8_10 |
| RHEL for NVIDIA 10 | RHSA-2026:93775 | kernel-6.12.0-265.31.el10nv |
The EUS, SAP and Telecommunications streams have their own advisories. RHEL 9 kernel-rt and the OpenShift 4 and 5 CoreOS images are still marked Affected. RHEL 7 and RHEL 6 are not affected. Bugzilla is 2553390.
Install it and reboot:
sudo dnf update kernel
sudo reboot
uname -r
rpm -q kernel
Keep the previous kernel installed until the new one boots, which dnf usually does for you. If the new uname -r is still on the Affected side of the tracker, you rebooted into an unfixed package.
On AlmaLinux, Rocky Linux, Amazon Linux, SUSE or Oracle Linux, go by your vendor’s own tracker.
How do you run a VPS with no public ports?
Patching closes this bug. A public TCP listener is how a stranger reaches it, and the next one. So the layout Levels described is the one to end on. Visitors hit Cloudflare, and cloudflared on the VPS makes an outbound connection that carries the HTTP request to a program on localhost. You SSH over Tailscale. The public address accepts nothing new.
The VPS guide builds this step by step on Ubuntu, with the recovery plan, the tailnet policy, the tunnel, and what to test before you touch a production box. Where to host helps you decide whether a VPS is the right machine at all, and the free VPS course and Linux server security course cover the day-to-day work around it.
Before you change any firewall, open the provider’s web console and leave it logged in. On a Hetzner or DigitalOcean panel, that console is a keyboard on the VM that does not use your SSH port, so a wrong rule is fixable.
Install Tailscale on the VPS and confirm that a plain ssh to its tailnet address works from your laptop before you remove public port 22. The Tailscale tutorial is that install on a Mac and a new Droplet, through the first ssh by name. Closing 22 first is how people lock themselves out. Tailscale SSH (tailscale up --ssh) is optional; the October 2026 Tailscale SSH bugs, and the case for leaving it off, are in Tailscale alternatives for your own servers. Direct WireGuard uses UDP port 41641 by default, but per Tailscale’s firewall page traffic still flows through DERP relays without it, so you don’t need to open it. The tailnet course explains that network in more depth, and SSH itself is unchanged.
For the website, set up a named tunnel as in the Tunnel guide, with the origin on localhost. Cloudflare documents creating a locally managed tunnel and running it as a Linux service. The certificate and credentials JSON that cloudflared writes are secrets. The tunnel needs outbound port 7844 to Cloudflare, and no inbound port. A quick tunnel is fine for an afternoon, and the wrong tool for a server you keep.
Then add a host firewall as a second layer. With ufw, from the provider console, after tailnet SSH works:
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow in on tailscale0 to any port 22 proto tcp
sudo ufw enable
sudo ufw status verbose
If the server uses IPv6, /etc/default/ufw should contain IPV6=yes. Tailscale’s default netfilter mode accepts tailnet traffic before ordinary ufw input rules, so the ufw rule on port 22 is not your tailnet ACL.
Be careful with Docker. Its packet filtering documentation explains that published ports are handled in the nat table before the host firewall’s input chain, so ufw deny does not stop -p 3000:3000. Publish to loopback when cloudflared runs on the host:
services:
app:
ports:
- "127.0.0.1:3000:3000"
Finally, once tailnet SSH works and the site answers on its public hostname, delete inbound 22, 80, and 443 on the provider firewall and leave outbound open. Do it in the provider panel, not only in ufw, because the provider firewall sits in front of anything Docker published.
How do you verify nothing is open?
From another machine you control, one that is not joined to the tailnet:
nmap -Pn -sT -p- 203.0.113.10
203.0.113.10 is the documentation address, so put the VPS public IP there. -sT is a TCP connect scan, which does not need raw sockets. -p- is every TCP port. -Pn skips the ping, because the ping is often dropped and the host would be skipped as if it were down.
You want no open TCP ports. filtered means a firewall dropped or rejected the probe, and open means something accepted it and you still have to move or close that listener.
Tailscale’s direct-connect port is UDP, so the TCP scan misses it. Check it separately:
sudo nmap -Pn -sU -p 41641 203.0.113.10
If it shows open, you left Tailscale’s direct-connect port public.
Shodan and similar scanners work as a second opinion on an address you own, but they can lag by days. Keep running ss -tlnp on the server too, since it lists what the kernel will accept while the scan shows the path from the internet.
FAQ
Is my VPS vulnerable to CVE-2026-98432?
It is in range when the running kernel is at least 4.4 and older than the fixed version on its upstream line, or when your distro tracker still marks that package vulnerable. One public IPv4 TCP port is enough for a remote attacker to reach the handshake bug. MPTCP makes a demonstrated exploit path easier, and the kernel text does not require it. Read uname -r, then Ubuntu, Debian, or Red Hat for the package you boot.
How do I disable MPTCP on Linux?
Set net.mptcp.enabled=0 and store that line in /etc/sysctl.d/90-disable-mptcp.conf, then load it with sysctl -p. Restart listeners and confirm ss -Mlnp is empty. The kernel default documented for that sysctl is 1, per network namespace. On Go 1.24 or later, GODEBUG=multipathtcp=0 or godebug multipathtcp=0 in go.mod turns the listener default off, and SetMultipathTCP(false) does it for one socket.
Does disabling MPTCP fix CVE-2026-98432?
It blocks the MPTCP listener path the Go security team described. The use-after-free is in IPv4 TCP option handling during the handshake, and they say hosts with no MPTCP listeners can still be vulnerable to similar attacks. Red Hat’s IP-options filter has the same limit, and their bulletin says it cannot fully prevent the issue. Install the fixed kernel and reboot.
Which Ubuntu and RHEL kernels are fixed?
As of 4 November 2026, Ubuntu still had not published a fixed linux package. The tracker shows work in progress, including 6.8.0-149.149 for 24.04 and 5.15.0-203.213 for 22.04, and no USN. Red Hat has shipped fixed kernels for RHEL 8, 9 and 10 (RHSA-2026:93414, RHSA-2026:93412 and RHSA-2026:93413). Debian had shipped fixes in bookworm security (6.1.190-1) and trixie security (6.12.113-1). Check again on the day you patch, because those rows will change. If the Droplet is on DigitalOcean and you want Debian’s fixed kernel now, move it from Ubuntu to Debian.
How do I close every public port and still serve a site?
Serve the site through Cloudflare Tunnel, so cloudflared dials out and the app listens on localhost. SSH over Tailscale, and test ssh to the tailnet address before you remove public port 22. Default-deny incoming on ufw, allow SSH only on tailscale0, and delete inbound rules on the cloud firewall too. The longer VPS guide is the reboot and recovery checklist. What each of those three left open on one Droplet, and how fast the page was, is in Tailscale vs Cloudflare Tunnel vs a cloud firewall. Confirm with ss -tlnp and an nmap scan from outside the tailnet.
Want me to talk about your product? You can sponsor this site.
Related posts about security: