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

lightningd: don't assert if plugin crashes early.

Public commit record

What the developer wrote

Authored by Rusty Russell

80/100 · Strong
lightningd: don't assert if plugin crashes early.

If a plugin exits early, we will not exit with ret == plugins: return
from this function and we will exit because ld->exit_code is set.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This change removes a hard crash (assert) that occurred when a plugin exited unexpectedly during startup. Instead of the main lightning daemon crashing with an assertion failure, it now allows the daemon to shut down cleanly using the already-set exit code. This is a robustness fix that prevents a misbehaving plugin from causing an uncontrolled crash, but it does not appear to be a security vulnerability on its own.

Recommended action

Treat as a low-severity hardening/robustness fix. No urgent security action required. Users should upgrade normally and ensure plugins are from trusted sources, as a crashing plugin can still cause daemon shutdown (now graceful rather than abort).

Security signals we found

01

Removal of assert() that could abort the daemon

02

Plugin crash during startup could previously cause daemon abort

03

Improves graceful shutdown behavior for early plugin failures

Risk score

Why this scored 26/100

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