Skip to content

flake: update nixpkgs for Bitcoin Core 32.1 and lnd 0.21.6 - #195

Merged
seberm merged 1 commit into
bitcoinix:masterfrom
sebsgent:flake-bitcoin-32.1
Nov 1, 2026
Merged

seberm merged 1 commit into
bitcoinix:masterfrom
sebsgent:flake-bitcoin-32.1

Conversation

@sebsgent

@sebsgent sebsgent commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Relock with helper/update-flake.sh to get the Bitcoin Core security fix and the lnd mitigation for CVE-2026-98432 for 0.1.4. Both nixpkgs channels move forward, and the nixos-search flake is updated too.

Pinned: bitcoin and bitcoind 31.1 → 32.1 (stable), lnd 0.21.5 → 0.21.6-beta (unstable).

Security

  • Core 32.1 fixes the remote memory exhaustion DoS through BIP31 pings, which also affects Linux (advisory). The second fix doesn't affect Linux (advisory).
  • lnd 0.21.6 no longer opens Multipath TCP listeners by default, which closes the demonstrated remote exploit path for the Linux kernel bug CVE-2026-98432 through lnd (GHSA-qp6h-4hvh-qqqc, lnd notes). This is a mitigation for lnd only. The real fix is the kernel patch from 6.18.56; this lock has 6.18.60.

Possible problems

  • This is a major Core bump, not the 31.2 that the v0.1.3 notes promise. The 0.1.4 notes must correct that (Core 32.1 notes).
  • -rpcmaxconnections is new and defaults to 16. Extra RPC clients wait in the kernel queue until a slot frees up or they time out. A busy node running lnd, electrs, mempool, btcpayserver and fulcrum could stall. Connection counts on a real node are not measured. The workaround is services.bitcoind.extraConfig = "rpcmaxconnections=32";. Please watch this on a real node before release.
  • The default -maxconnections rises from 125 to 200, so nodes accept more inbound peers. Release notes only.
  • The RPCs drop bip125-replaceable, fullrbf, startingheight and the taproot deployment by default. Checked against the pinned sources: lnd 0.21.6 accepts the TAPROOT entry in script_flags, electrs doesn't read bip125-replaceable, and none of the sources I searched use these fields in a way that breaks. NBitcoin handles a missing startingheight on current master; the pinned 10.0.12 source wasn't checked.

No versioning entry: these are upstream behaviour changes and need no action from users.

Tested: ./test/run-tests.sh passes default, netns and netnsRegtest with VMs. nix flake check --all-systems evaluates cleanly and ./test/shellcheck.sh passes. All of this is short-lived VMs only: no mainnet node and no upgrade of an existing 31.1 datadir. The pinned lnd build reports DefaultGODEBUG=multipathtcp=0 in go version -m. test/nixos-search/ci-test.sh and the deployment examples were left to CI.

@github-actions github-actions Bot added area: ci .github/, test/, dev/ area: packages pkgs/ and flake pins labels Nov 1, 2026
@seberm
seberm marked this pull request as ready for review November 1, 2026 14:20
@sebsgent sebsgent changed the title flake: update nixpkgs for Bitcoin Core 32.1 flake: update nixpkgs for Bitcoin Core 32.1 and lnd 0.21.6 Nov 1, 2026
Run helper/update-flake.sh. nixpkgs (nixos-26.05) moves to 2026-10-31
and nixpkgs-unstable to 2026-11-01. The nixos-search test flake is
updated too.

Pinned packages:

  bitcoin, bitcoind 31.1        -> 32.1 (stable)
  lnd               0.21.5-beta -> 0.21.6-beta (unstable)

Core 32.1 fixes a remote memory exhaustion DoS through BIP31 pings that
affects all platforms, disclosed on 2026-10-28, plus a second issue
that doesn't affect Linux. nixpkgs took the major version, not 31.2.

Core now limits concurrent RPC clients with -rpcmaxconnections (default
16) and raises the default -maxconnections from 125 to 200. Neither
needs a versioning entry; both belong in the release notes.

Assisted-by: Claude Code (claude-opus-5-5)
@seberm
seberm force-pushed the flake-bitcoin-32.1 branch from 0d6b8a7 to 61bba65 Compare November 1, 2026 21:24
@seberm
seberm requested a review from prusnak November 1, 2026 21:24
@seberm
seberm merged commit a3b3aed into bitcoinix:master Nov 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci .github/, test/, dev/ area: packages pkgs/ and flake pins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants