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

channeld: reject `closing_complete` and `closing_sig` with a clear error

Public commit record

What the developer wrote

Authored by Níckolas Goline

73/100 · Adequate
channeld: reject `closing_complete` and `closing_sig` with a clear error

When `option_simple_close` is negotiated the master launches `simpleclosed`
after `channeld` exits, so `closing_complete` and `closing_sig` should never
arrive inside `channeld`. Add stubs that call peer_failed_warn() with an
informative message rather than hitting the default unknown-message path.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change makes a Lightning node respond with a clear warning error if a peer sends certain closing-related messages at the wrong time, instead of silently following the default 'unknown message' path. It is a hardening fix that prevents potential confusion or protocol mishandling during channel close, but it does not by itself grant an attacker new capabilities.

Recommended action

Treat as a minor hardening patch. Review whether any peer can trigger the new peer_failed_warn path to cause unwanted disconnects, and ensure simpleclosed correctly handles these messages after channeld exits. No urgent deployment required absent a disclosed exploit.

Security signals we found

01

Explicit rejection of protocol messages that should not occur in this daemon state

02

Prevents silent handling of closing_complete/closing_sig inside channeld

03

Uses peer_failed_warn to disconnect with a descriptive error

Risk score

Why this scored 33/100

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