Skip to content

fix: apply reversible CVE-2026-98432 mitigation on Ubuntu - #225

Merged
Marketen merged 5 commits into
masterfrom
fix/cve-2026-98432-kernel
Nov 3, 2026
Merged

Marketen merged 5 commits into
masterfrom
fix/cve-2026-98432-kernel

Conversation

@Marketen

@Marketen Marketen commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Ubuntu Dappnodes need a temporary mitigation for CVE-2026-98432 while waiting for the official kernel update. This PR adds only the host script and its Core migration wrapper.

  • On Ubuntu, disables supported host MPTCP/request-migration sysctls and drops IPv4 TCP packets carrying IP options in raw PREROUTING and OUTPUT, including normal Docker bridge/DNAT traffic.
  • Persists the sysctls through sysctl.d and restores firewall rules with a one-shot boot service. No periodic timer or resident checking process is installed. Live status and explicit rollback remain available.
  • Debian and other distributions skip the new mitigation. The Core package itself can still update on those systems.
  • Does not install kernel packages, enable proposed repositories, or reboot.

This is partial risk reduction, not a kernel fix. Container-local and host-netfilter-bypassing traffic remain outside coverage.

Companion: dappnode/DNP_DAPPMANAGER#2500

Validation is kept locally, outside the PR diff:

  • Actual Ubuntu 24.04.5 ARM64 VM, kernel 6.8.0-147-generic: immediate application without reboot; new MPTCP sockets rejected; actual reboot restored both rules and sysctls with ExecMainStatus=0 and MainPID=0; explicit rollback survived another actual reboot and Core-script replay. No timer.
  • Two-node private Geth/Lighthouse devnet with 256 disposable validators: the actual upgrade_014.sh/nsenter wrapper ran while clients were live. Slots advanced from 38 to 140, epoch 2 finalized, and all 256 validators received positive source/target/head attestation rewards in an epoch entirely after the mitigation was applied.
  • Ubuntu 22.04/24.04 packet/lifecycle matrix, iptables-nft and iptables-legacy, amd64 userspace under emulation, and actual Debian 12/13 skip checks passed. ShellCheck and generated systemd unit verification passed.
  • Found and fixed Ubuntu 22.04 iptables predicates printing rules into the status response; suppress stdout and stderr for those checks.

The boot and validator labs were separate. This is not a full production Dappnode/mainnet or physical amd64-hardware test. A benign network-namespace test confirms traffic entirely inside another namespace bypasses host rules. This does not establish that an unpatched kernel is unexploitable. No RCE proof of concept was run.

Tests and evidence remain local and excluded from Git; only the two runtime scripts are in this PR. The former test workflow and unrelated entrypoint changes remain out of scope.

Before publishing, canary real Ubuntu boot persistence, VPN/DNS and validator networking. The Core migration can be released independently using the existing DappManager. The companion DappManager PR is optional status reporting, not a prerequisite. Existing Core auto-update settings and delay still apply.

Manual verification on a canary after installing the new Core build:

sudo bash /usr/local/lib/dappnode/mitigate_cve_2026_98432.sh status
sudo systemctl status dappnode-cve-2026-98432.service
sudo iptables -t raw -S PREROUTING
sudo iptables -t raw -S OUTPUT

Rollback: sudo bash /usr/local/lib/dappnode/mitigate_cve_2026_98432.sh remove.

Sources: Ubuntu, Akamai, AWS.

…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Dappnode bot has built and pinned the built packages to an IPFS node, for commit: b22a72c

This is a development version and should only be installed for testing purposes.

  1. Package core.dnp.dappnode.eth

Install link

Hash: /ipfs/QmSsc7gifiUPZ2Ufx1wmAZqCvam9PkEbgFRdheQFAdFGTK

(by dappnodebot/build-action)

@Marketen
Marketen marked this pull request as ready for review November 3, 2026 12:13
@Marketen
Marketen requested a review from a team as a code owner November 3, 2026 12:13
@Marketen
Marketen merged commit 44c41fa into master Nov 3, 2026
4 checks passed
@Marketen
Marketen deleted the fix/cve-2026-98432-kernel branch November 3, 2026 12:13
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