Repository navigation
fix: disable MPTCP listeners by default - #1573
Conversation
Disable Go's default MPTCP listener behavior to block the known CVE-2026-98432 exploit path on unpatched Linux hosts. Co-Authored-By: Claude GPT-5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
🔍 Review in progress — actively reviewing now (commit 75e3930) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The change correctly uses a valid module-level godebug directive to disable MPTCP by default, and the inspected production listener paths use Go's standard networking APIs governed by this setting. One non-blocking gap remains: there is no committed regression guard for the security-mitigation directive, so future module-file changes could silently remove it. The reported govulncheck failure concerns pre-existing toolchain and dependency vulnerabilities and is unrelated to this change.
🟡 1 suggestion(s)
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — This is a small, self-contained go.mod configuration change that alters the default listener behavior but is straightforward to verify and does not affect consensus, funds, cryptography, or storage. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 99% left, weekly 81% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.
In `go.mod`:
- [SUGGESTION] go.mod:5-6: Add a regression guard for the MPTCP mitigation
The mitigation is entirely represented by this `godebug` directive, but the repository has no automated check that it remains present or effective. A future `go.mod` rewrite, merge conflict, or tooling change could remove the directive while ordinary builds and tests continue to pass. Add a focused guard—such as a module-file check for `godebug multipathtcp=0`, or a suitable platform-specific listener probe—to make removal of this security setting visible in CI.
Out-of-scope follow-up suggestions (1)
These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.
- Gating govulncheck failure requires a separate dependency and toolchain update — The
govulncheckcheck fails on this head because the repository's Go 1.27.1 toolchain andgolang.org/x/netversion are affected by vulnerabilities fixed in later versions. The failure is present independently of this MPTCP-only change and does not indicate a regression in the pull request.- Follow-up: Track a separate update to Go 1.27.3 or later and golang.org/x/net v0.60.0 or later, together with the corresponding CI toolchain versions.
| // Disable MPTCP listeners to block the known CVE-2026-98432 exploit path. | ||
| godebug multipathtcp=0 |
There was a problem hiding this comment.
🟡 Suggestion: Add a regression guard for the MPTCP mitigation
The mitigation is entirely represented by this godebug directive, but the repository has no automated check that it remains present or effective. A future go.mod rewrite, merge conflict, or tooling change could remove the directive while ordinary builds and tests continue to pass. Add a focused guard—such as a module-file check for godebug multipathtcp=0, or a suitable platform-specific listener probe—to make removal of this security setting visible in CI.
source: glm-5.3-flash (phase1-reviewer: general)
TL;DR: Tenderdash now avoids the listener configuration used by the known CVE-2026-98432 exploit while preserving existing Docker networking.
User story
As a Tenderdash operator, I want nodes to avoid the known vulnerable listener path by default, to reduce exposure while host kernels are being patched.
Scenario
Base flow
An operator builds and runs Tenderdash 1.8.1 on Linux, including inside a Docker container, and exposes the normal P2P listener.
Actual behavior
Go enables MPTCP listeners by default on supported Linux kernels, so Tenderdash's ordinary TCP listeners can use the protocol exercised by the published CVE-2026-98432 exploit.
Expected behavior
Tenderdash listeners use ordinary TCP by default without requiring changes to Docker network mode, container sysctls, or deployment manifests.
Detailed discussion
Issue being fixed or feature implemented
CVE-2026-98432 is a Linux IPv4 TCP use-after-free. The demonstrated remote-code-execution path targets an MPTCP listener, and Go enables MPTCP for listeners by default since Go 1.24.
What was done
Added
godebug multipathtcp=0to the main module. Go embeds this default in Tenderdash binaries, so calls tonet.Listen("tcp", ...)use ordinary TCP unless an operator explicitly overrides the setting at runtime.The setting is defense in depth and does not replace updating the Docker host to a vendor-patched kernel. No Docker networking or sysctl configuration is changed.
How Has This Been Tested?
v1.8.1and passes withDefaultGODEBUG=multipathtcp=0after the change.go mod edit -jsonand confirmed themultipathtcp=0directive.SO_PROTOCOLwas6(IPPROTO_TCP) rather than262(IPPROTO_MPTCP).git diff --check.Breaking Changes
None. MPTCP was not an explicit Tenderdash feature or configuration surface. Operators can still explicitly override the Go default if required.
Checklist
For repository code-owners and collaborators only
Prior work
multipathtcp=0as a temporary mitigation and prioritizes a patched kernel.Attribution
🤖 Co-authored by Claudius the Magnificent AI Agent