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

connectd: close connection properly after dev-disconnect `+`.

Public commit record

What the developer wrote

Authored by Rusty Russell

85/100 · Strong
connectd: close connection properly after dev-disconnect `+`.

We need to drain subds too, otherwise if timing is correct we never close.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, 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 patch fixes a bug in Core Lightning's connection handling where a developer testing feature (dev-disconnect '+') could leave a peer connection stuck open instead of closing it cleanly. The fix ensures all sub-connections are drained and freed before shutting down the peer connection. It is a hardening fix for a development/testing path, not a clear remote exploit on its own.

Recommended action

Treat as a routine bug-fix patch with minor security hardening. Review whether the stuck-connection scenario is reachable outside developer/test builds, since dev-disconnect is normally gated by DEVELOPER flags. No urgent action required unless this path is exposed in production builds.

Security signals we found

01

Resource leak / connection not closed under specific timing

02

Developer-only disconnect path (dev-disconnect '+')

03

Refactoring of subd cleanup into shared helper

04

No explicit security or CVE mention in commit message

Risk score

Why this scored 35/100

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