Skip to content

fix: disable MPTCP listeners by default - #1573

Merged
lklimek merged 2 commits into
masterfrom
fix/disable-mptcp-listeners
Oct 30, 2026
Merged

lklimek merged 2 commits into
masterfrom
fix/disable-mptcp-listeners

Conversation

@lklimek

@lklimek lklimek commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

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=0 to the main module. Go embeds this default in Tenderdash binaries, so calls to net.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?

  • Confirmed the compiler default check failed on unmodified v1.8.1 and passes with DefaultGODEBUG=multipathtcp=0 after the change.
  • Parsed the module with go mod edit -json and confirmed the multipathtcp=0 directive.
  • Compiled and ran a temporary local listener probe in the module; SO_PROTOCOL was 6 (IPPROTO_TCP) rather than 262 (IPPROTO_MPTCP).
  • Ran 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

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Prior work

Attribution

🤖 Co-authored by Claudius the Magnificent AI Agent

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]>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Oct 30, 2026 •

Copy link
Copy Markdown

🔍 Review in progress — actively reviewing now (commit 75e3930) · triage: low
██████████████████░░ 87% · taking longer than usual · running for 18 min
✅ triage → ✅ Phase 1 → ✅ verify 1 → ✅ gate → ⏳ Phase 2 (0/1 lanes) → ▫️ verify 2 → ▫️ publish
Estimated from recent reviews of this tier · updated 11:31 UTC · live progress

@lklimek
lklimek marked this pull request as ready for review October 30, 2026 08:46
@lklimek
lklimek marked this pull request as draft October 30, 2026 08:59

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: low by gpt-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); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 99% left, weekly 81% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-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 govulncheck check fails on this head because the repository's Go 1.27.1 toolchain and golang.org/x/net version 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.

Comment thread go.mod
Comment on lines +5 to +6
// Disable MPTCP listeners to block the known CVE-2026-98432 exploit path.
godebug multipathtcp=0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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)

@lklimek
lklimek marked this pull request as ready for review October 30, 2026 10:42
@lklimek
lklimek merged commit d684205 into master Oct 30, 2026
20 checks passed
@lklimek
lklimek deleted the fix/disable-mptcp-listeners branch October 30, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants