AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 38 Bitcoin

lightningd: initialize ECDH before replaying blinded HTLCs

Public commit record

What the developer wrote

Authored by michael1011

83/100 · Strong
lightningd: initialize ECDH before replaying blinded HTLCs

Replay of stored blinded HTLCs can reach onion decoding before the
hsmd-backed ecdh() wrapper is initialized, causing a startup crash.
Set up ECDH earlier and add a regression test for blinded HTLC replay.

Changelog-Fixed: lightningd no longer crashes when replaying stored blinded HTLCs during startup.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit fixes a startup crash in Core Lightning. If the node had stored a special type of payment (a 'blinded HTLC') that needed to be replayed when restarting, the code could try to decode its encrypted onion before the secure key-handling helper was ready. The fix simply initializes that helper earlier in startup and adds a regression test. It is a reliability bug, not a code-execution or theft vulnerability.

Recommended action

Apply the patch. It is a straightforward initialization-order fix with a regression test. No immediate incident response is warranted beyond normal update deployment.

Security signals we found

01

Fixes a startup crash (denial of service against the local node)

02

Involves ECDH/HSM initialization ordering

03

Adds regression test for blinded HTLC replay

04

Changelog labels it as a fixed crash

Risk score

Why this scored 38/100

Our methodology →
Potential impact 12/30
Exploitability 5/25
Stealth signal 3/15
Affected reach 6/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.