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

lightningd: don't hand 0 to dualopend as anchor feerate if we cannot estimate fees.

Public commit record

What the developer wrote

Authored by Rusty Russell

81/100 · Strong
lightningd: don't hand 0 to dualopend as anchor feerate if we cannot estimate fees.

Fixes: https://github.com/ElementsProject/lightning/issues/8847
Reported-by: https://github.com/mdance
Changelog-EXPERIMENTAL: fixed crash with dual funding if we cannot estimate fees.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This patch fixes a crash in Core Lightning's experimental dual-funding feature. When the node couldn't estimate current Bitcoin transaction fees, it was passing a value of 0 to a sub-component (dualopend) as the 'anchor feerate.' That zero value caused the process to crash. The fix detects the zero, substitutes a minimum fallback feerate, and adds a safety check to ensure it is never zero.

Recommended action

Upgrade to a release containing this commit if you run dual-funded channel opens. The crash is triggered only when fee estimation fails, so ensuring a reliable fee source also mitigates the issue. No immediate remote-exploitation concern is evident from the diff.

Security signals we found

01

Denial-of-service vector: passing an invalid 0 feerate crashes the dualopend subdaemon

02

Input validation gap: missing handling of 'unknown' fee-estimation return value

03

Crash triggered during dual-funded channel open when fee estimator has no data

04

Fix uses a guaranteed non-zero floor feerate as a safe fallback

Risk score

Why this scored 44/100

Our methodology →
Potential impact 12/30
Exploitability 5/25
Stealth signal 8/15
Affected reach 7/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.