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

libplugin: don't wait for clean_tmpctx() to free requests as we process them.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
libplugin: don't wait for clean_tmpctx() to free requests as we process them.

xpay is relying on the destructor to send another request. This means
that it doesn't actually submit the request until *next time* we wake.

This has been in xpay from the start, but it is not noticeable until
xpay stops subscribing to every command on the rpc_command hook.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This is a bug-fix patch for Core Lightning's plugin library. It changes when plugin-to-JSON-RPC request objects are freed so that an internal plugin called xpay can immediately send follow-up commands instead of waiting until the next event loop wakeup. The commit describes it as a functional bug that was hidden until xpay stopped monitoring every command, not as a security vulnerability.

Recommended action

Treat as a normal bug fix. Review whether the lifetime change affects any other plugins that rely on deferred tmpctx cleanup, and run xpay regression tests. No immediate security response is indicated by the supplied materials.

Security signals we found

01

Memory lifetime change for RPC request/response objects

02

Functional correctness fix for plugin command chaining (xpay)

03

No explicit security claim in commit message or diff

04

No input validation, bounds, or cryptographic changes visible

05

No incident or exploit references supplied

Risk score

Why this scored 29/100

Our methodology →
Potential impact 8/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.