Skip to content

Did you know?

Since Go 1.24, Go programs on Linux listen with Multipath TCP (MPTCP) by default.

Check for MPTCP listeners with ss -Mltn; turn it off per service with GODEBUG=multipathtcp=0.

  • Networking
  • Applies to Go 1.24 and later on Linux
  • Last checked

Explained

Starting with Go 1.24, net.Listen and the HTTP servers built on it enable Multipath TCP on listening sockets by default when the Linux kernel supports MPTCP. Clients that don’t use MPTCP still connect over plain TCP, so most people never notice. But it means a Go service may run an MPTCP listener even though nobody configured one.

That became important with the Linux kernel flaw CVE-2026-98432, where the reported remote root exploit needed an MPTCP listener. List MPTCP sockets on a host with:

ss -Mltn

To turn the behaviour off for one service, start it with GODEBUG=multipathtcp=0 (for example through an Environment= line in its systemd unit). To disable MPTCP for the whole host, set net.mptcp.enabled=0 with sysctl.

Learn more

← All tech tips · Suggest a fix

Back to top