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

lightningd: don't process more than 100 commands from a plugin at once.

Public commit record

What the developer wrote

Authored by Rusty Russell

83/100 · Strong
lightningd: don't process more than 100 commands from a plugin at once.

Now that ccan/io rotates through callbacks, we can call io_always() to
yield.

We're now fast enough that this doesn't have any effect on this test,
bit it's still good to have.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ 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 change adds a limit so that Core Lightning processes at most 100 plugin responses in one go before yielding control back to the main event loop. The stated goal is to prevent a misbehaving or malicious plugin from flooding the daemon with responses and starving other work. It is framed by the author as a hardening measure rather than a fix for a known exploitable bug.

Recommended action

Treat as a low-risk hardening improvement. No immediate action required unless running a version prior to this commit and concerned about plugin-induced event-loop starvation; in that case, upgrade. Monitor for follow-up disclosures from the project or researchers that might reclassify the issue.

Security signals we found

01

Denial-of-service hardening: limits work done per plugin callback to avoid event-loop starvation

02

Use of io_always() to explicitly yield after a bounded number of responses

03

Author describes change as preventive ('don't let it flood us') rather than a fix for a reported vulnerability

Risk score

Why this scored 36/100

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