Go listeners and MPTCP
Since Go 1.24,net.ListenConfig uses Multipath TCP (MPTCP) by default on Linux whenever the kernel supports it. net.Listen("tcp", ...) goes through ListenConfig, so ordinary servers such as http.ListenAndServe accept MPTCP connections without any code change. Clients still connect over plain TCP unless you opt in.
The default also follows the go line in the main module’s go.mod. A module that declares go 1.23 or earlier keeps the old behavior (no MPTCP unless requested), even when built with a newer toolchain.
MPTCP lets one connection use several network paths, for example Wi-Fi and cellular together. Most clients never use it, so you won’t notice it in normal operation. It still adds attack surface: the listening socket goes through a different kernel code path, and a kernel bug in that path is reachable from the network.
Case study: CVE-2026-98432
The facts in this section were current as of November 1, 2026. Follow your distribution’s advisory for fixed kernel versions.
- The bug. A race-condition use-after-free in the Linux kernel’s IPv4 TCP connection-request handling (
ipv4: free inet_opt and ireq_opt after an RCU grace period). Red Hat rates it Critical: a remote, unauthenticated attacker can trigger it, it affects any vulnerable kernel with IPv4 TCP enabled, and systems that accept inbound TCP connections are the most directly exposed. - The exploit. Anthropic’s proof of concept got a root shell on a server with an MPTCP listener, with no credentials and no user interaction. A lost race only fails that one handshake and doesn’t crash the machine, so the attacker can keep retrying. The PoC needed about 48 minutes to leak a kernel address and another 5 minutes to run a command as root.
- Why Go servers were in the spotlight. Xray-core’s maintainers pointed out that for most of their users, the only programs serving MPTCP on the host are Go proxy servers built with Go 1.24 or later. Xray-core shipped an emergency release that turns MPTCP off by default. Caddy and other Go servers were named in the same discussion.
- The Go team’s position. Upgrade the kernel. The underlying bug is not specific to MPTCP, so systems without MPTCP listeners may be vulnerable to similar attacks. Turning MPTCP off program by program is fragile: one forgotten listener leaves the host exposed. The team decided not to change Go’s default for now.
Durable lessons
- Runtime defaults change your kernel attack surface. A toolchain upgrade can change which kernel code paths your server exposes, even if you never touch your code. Read the networking and GODEBUG sections of release notes as security notes.
- List listeners by protocol, not just by port.
ss -lntshows a port as listening. It doesn’t show whether that port also accepts MPTCP. - App-level switches reduce exposure; patching fixes the bug. Turn MPTCP off where you don’t need it, but treat that as temporary mitigation until the patched kernel is running.
Check what you expose
List MPTCP listening sockets and the processes behind them:1 means enabled):
go list only prints settings that differ from the toolchain’s defaults. With a Go 1.24 or later toolchain, an empty result means listeners use MPTCP; multipathtcp=0 in the output means they don’t.
Turn MPTCP off
Pick the narrowest layer that covers every listener you run.
Per-socket example:
GODEBUG takes a comma-separated list. If the service already sets GODEBUG, add multipathtcp=0 to the existing value instead of replacing it.
The multipathtcp values are 0 (off), 1 (dialers and listeners), 2 (listeners only, the Go 1.24 default), and 3 (dialers only).
The host-wide sysctl is safe for Go programs. When creating the MPTCP socket fails, Go falls back to plain TCP. Persist it in /etc/sysctl.d/ if you want it to survive a reboot, and confirm that nothing on the host actually needs MPTCP.
After any change, run sudo ss -Mlnp again and confirm the listener is gone from the list.
Fix the kernel
- Install your distribution’s patched kernel and reboot into it. Check that
uname -rreports the new version. - If you can’t patch right away, follow your vendor’s interim mitigation. Red Hat published an nftables rule that drops inbound IPv4 TCP packets carrying IP options. Red Hat expects ordinary application traffic to be unaffected, but test the rule first, and remove it after patching. It reduces exposure; it does not fully prevent exploitation.
- Remember that containers share the host kernel. Patching an image does nothing; patch the node.
References
- Folo source: Geek on the Xray-core emergency update
- Go 1.24 release notes:
net.ListenConfiguses MPTCP by default - Go docs: GODEBUG history and
multipathtcpvalues - Go Security Team: Protecting against CVE-2026-98432 (via oss-security)
- Go source: MPTCP listener fallback to TCP
- NVD: CVE-2026-98432
- Red Hat: RHSB-2026-016 and nftables mitigation
- Anthropic: Discovering and exploiting vulnerabilities with Claude
- XTLS/Xray-core #7291: disable MPTCP by default
- Linux kernel docs: MPTCP sysctl
enabled - ss(8):
-M, --mptcp
