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

pytest: channels reusing a funding outpoint must not crash us

Public commit record

What the developer wrote

Authored by cdecker

65/100 · Adequate
pytest: channels reusing a funding outpoint must not crash us

(cherry picked from commit bc01ae602ced2a5c46312900e6cea02c617ecd69)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit adds a test showing that Core Lightning can crash if a node's database ends up with two channels sharing the same internal channel ID—one already closed and another later closed with the same ID. The test is currently marked as expected to fail, meaning the underlying crash bug has not been fixed yet. It appears to be a denial-of-service issue: a malformed or manipulated local database state causes lightningd to crash on channel close and then again on every restart.

Recommended action

Treat this as a known unfixed bug. A developer should add a database-level constraint or application-level deduplication/renaming logic so that closed channels with duplicate channel_ids do not crash the daemon on close or startup. Users should avoid manually manipulating the database; operators who suspect duplicate channel_ids should seek a patched release before restarting.

Security signals we found

01

Denial-of-service via local database state corruption

02

Daemon crash on startup after duplicate channel_id enters closed channels

03

Database uniqueness/lookup assumption violation on channel_id

04

Test-only commit; no production code fix included

Risk score

Why this scored 50/100

Our methodology →
Potential impact 18/30
Exploitability 8/25
Stealth signal 7/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.