CVE-2026-98432: Are Your Go Servers Listening on MPTCP?

CVE-2026-98432 is a use-after-free in the Linux kernel's IPv4 TCP handshake code. The Linux kernel CNA scores it 9.8 in the CVE record. The only public remote code execution so far targets servers with a Multipath TCP (MPTCP) listener. Since Go 1.24, Go servers on Linux open one by default, without asking. Your Go services can be the exposed part of a fleet even if nobody on the team has heard of MPTCP.
This post covers how to tell which Go binaries listen on MPTCP, how to turn it off, and the traps that make a quick mitigation look done when it is not.
What Was Disclosed
- The bug. The CVE record is titled "ipv4: free inet_opt and ireq_opt after an RCU grace period". A child socket can be freed while the kernel is still building a SYNACK from its IP options. The scenario in the record is an attacker who sends "IPv4 Record Route or Timestamp bytes in a TCP SYN". The affected range starts at the commit "tcp/dccp: install syn_recv requests into ehash table" and covers kernels from 4.4.
- The exploit. On October 27, 2026, Anthropic described an exploit that "allows a remote attacker to send packets to Linux servers with a multipath TCP listener to run arbitrary commands as root". In their proof of concept, leaking a kernel pointer takes 48 minutes and command execution another five.
- The fix. The CVE record lists fixed stable releases 5.10.272, 5.15.223, 6.1.190, 6.6.159, 6.12.113, 6.18.56 and 7.2.10, plus mainline 7.3. Ubuntu lists fixed kernels such as 6.8.0-149.149 for 24.04 LTS and 5.15.0-203.213 for 22.04 LTS. AWS ships patched Amazon Linux 2 and 2023 kernels (bulletin 2026-160-AWS).
- In the wild. AWS says "We have no evidence that this issue has been leveraged at this time." Sophos says the same.
The point that matters for triage: MPTCP is the demonstrated path, not a stated requirement. The Go security team's announcement says "the underlying bug is not specific to MPTCP" and that systems with no MPTCP listeners may be "vulnerable to similar attacks." Turning MPTCP off lowers your risk now. The patched kernel is the fix.
Why Go Is in the Story
Go 1.21 added MPTCP support but used it only on request. The Go 1.24 release notes changed that: "ListenConfig now uses MPTCP by default on systems where it is supported (currently on Linux only)." The GODEBUG page documents the switch:
multipathtcp |
Meaning |
|---|---|
0 |
MPTCP off for dialers and listeners (pre-1.24 behavior) |
1 |
MPTCP on for dialers and listeners |
2 |
MPTCP on for listeners only (default since Go 1.24) |
3 |
MPTCP on for dialers only |
net/http, gRPC servers and anything else that ends up in net.Listen("tcp", ...) inherit this. An MPTCP listener still serves ordinary clients: the kernel docs say it creates "plain" accepted TCP sockets when the client did not ask for MPTCP. So your clients do not have to use MPTCP for the server to be exposed. An attacker can ask for MPTCP in their own SYN.
The Go team does not plan to change the default for now. Its announcement says "it is premature to consider making any changes to Go (such as changing the default MPTCP behavior)", and the proposal to disable it, golang/go#82717, is still open. The fix is yours to apply.
Which Binaries Listen on MPTCP: A Decision Table
The effective setting comes from four layers, and the later ones win. Walk the table from the top:
| Check | Result | Listener uses MPTCP? |
|---|---|---|
| Built with a Go toolchain older than 1.24 | go version -m shows go1.23 or older |
No, unless the code calls SetMultipathTCP(true) |
Main module's go line is older than 1.24 |
DefaultGODEBUG contains multipathtcp=0 |
No by default |
godebug multipathtcp=0 in go.mod/go.work, or //go:debug multipathtcp=0 |
DefaultGODEBUG contains multipathtcp=0 |
No by default |
GODEBUG env var sets multipathtcp |
Visible in /proc/<pid>/environ |
Env value wins over the built-in default |
Code calls ListenConfig.SetMultipathTCP |
Only visible in source | This wins over everything above |
Kernel has no MPTCP, or net.mptcp.enabled=0 in that netns when the socket was created |
ss -M shows nothing |
No, Go falls back to TCP |
The second row hides a trap. The toolchain amends its defaults to match the go line of the main module: Go's godebug table records multipathtcp as changed in 1.24 with old value 0. A service built with Go 1.26 but still declaring go 1.22 has no MPTCP listener. Bump the go line to 1.24 during routine maintenance and the listener switches to MPTCP, with no change to the code.
How to Check
1. Look at the sockets. This is the ground truth. ss -M displays MPTCP sockets:
sudo ss -Mlnp
Every line is an MPTCP listener, with the process that owns it. ss sees only the network namespace it runs in, so check containers from their own namespace:
pid=$(docker inspect -f '{{.State.Pid}}' "$CONTAINER")
sudo nsenter -t "$pid" -n ss -Mln
2. Read the binary. DefaultGODEBUG is a documented build setting that holds "the effective GODEBUG settings", and go version -m prints the build info:
go version -m /usr/local/bin/myservice | grep -E 'go1\.|DefaultGODEBUG'
A toolchain of go1.24 or later with no multipathtcp=0 in DefaultGODEBUG means the default is on. Only differences from the toolchain's own defaults are recorded, so an empty DefaultGODEBUG also means "on". The same check works on binaries copied out of images, so CI can run it without starting the service.
3. Read the runtime environment.
tr '\0' '\n' < /proc/$PID/environ | grep GODEBUG
sysctl net.mptcp.enabled
4. Grep the source for SetMultipathTCP. A call with true keeps MPTCP on no matter what you set in the environment.
How to Turn It Off
Pick the layer you control, and know what each one covers:
- Runtime, per process: set
GODEBUG=multipathtcp=0in the systemd unit or pod spec. The Go team gives this one first. It needs a restart. - Build time: add
godebug multipathtcp=0to the main module'sgo.mod. Only the work module'sgo.modcounts. Agodebugline in a library you import is ignored, and in a workspace onlygo.workis read. - Host-wide:
sysctl -w net.mptcp.enabled=0, which also covers non-Go software. Persist it in/etc/sysctl.d/. - Packet filter: AWS gives a rule that drops IPv4 packets carrying IP options, which the attack scenario in the CVE record uses:
iptables -I INPUT 1 -m u32 --u32 '0>>24&0x0f=6:15' -j DROP. Ubuntu gives the same idea for ufw and nftables. It does not depend on MPTCP, but test it first if anything on your network sends IP options.
The Go announcement calls per-program disabling "a fragile mitigation", and AWS says turning MPTCP off "reduces the conditions for running code on a host, but it does not resolve the issue." Treat all four as a bridge to the patched kernel.
Three Failure Modes
The sysctl does not touch running listeners. The sysctl doc says net.mptcp.enabled controls "whether MPTCP sockets can be created." A listener opened before you flipped it stays MPTCP. Restart the services, then confirm with ss -Mlnp that the list is empty.
The host sysctl does not reach your containers. The doc also says "This is a per-namespace sysctl". In the kernel source (net/mptcp/ctrl.c), every new network namespace starts with mptcp_enabled = 1, whatever the host has. Setting it on a Kubernetes node protects host-network pods only. For the others, set GODEBUG in the pod spec, or set the sysctl inside each pod's namespace if your cluster allows that sysctl.
The patch is installed, but not running. A new kernel package does nothing until the host boots into it. Compare uname -r with the fixed versions above, not the package manager output. A node that pulled the package last week and never rebooted is still vulnerable, with or without MPTCP.
Triage Order
- List MPTCP listeners on internet-facing hosts and in their containers with
ss -Mlnp. - Set
GODEBUG=multipathtcp=0(or the sysctl) on those first, then restart them. - Schedule kernel updates and reboots. Check
uname -rafterwards. - Add the
go version -mcheck to image CI, so agoline bump does not quietly reopen the listener. - Remove the workaround only if you actually use MPTCP and every kernel is patched.
Running the Check From Akmatori
The commands in this post are all read-only: ss, sysctl, uname -r, go version -m. You can write them as a skill and let Akmatori run them through the SSH connector, which keeps hosts read-only by default and runs diagnostic commands unless you allow write commands. If you want to dig into a single socket afterwards, our guide to tcp_info explains what the kernel reports per connection. For another case of a "safe default" turning into an exposure, see sshhole on Alpine.
Conclusion
Go did not cause CVE-2026-98432, but since Go 1.24 it opens the door the public exploit uses. Check the sockets, not assumptions: ss -Mlnp in every namespace, DefaultGODEBUG in every binary. Turn MPTCP off where you do not need it, restart, and then patch and reboot, because the bug sits in IPv4 TCP itself.
If your team wants AI-assisted incident workflows on your own infrastructure, Akmatori helps SRE teams investigate alerts, coordinate response, and run read-only exposure checks across the fleet. Powered by Gcore for global infrastructure reliability.
