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

gossipd: make sure we correctly move node announcement when *no* channel preceeds it in the gossip store.

Public commit record

What the developer wrote

Authored by Rusty Russell

83/100 · Strong
gossipd: make sure we correctly move node announcement when *no* channel preceeds it in the gossip store.

We had the test backwards, so we moved it *all the time*. This bloats our gossip store, as well as
not moving it in the case where we need to.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: gossipd: we would occasionally not show a node announcement in listnodes().
✓ 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 commit fixes a logic bug in Core Lightning's gossip daemon. The condition for moving a 'node announcement' record in the gossip store was accidentally inverted, so it was moved all the time instead of only when needed. This caused unnecessary growth of the gossip store and could hide node announcements from the listnodes() RPC result. It is a reliability/availability bug, not a direct funds-loss vulnerability, and there is no evidence it was disclosed as a security issue or credited to an external researcher.

Recommended action

Apply the patch to correct the inverted condition. Monitor gossip store size and listnodes() completeness after upgrade. No emergency response is indicated; the issue is a correctness/availability bug rather than an exploitable security vulnerability.

Security signals we found

01

Logic inversion bug in gossip store maintenance

02

Can cause node announcements to be missing from listnodes() RPC

03

Causes gossip store bloat due to unnecessary record movement

04

No direct cryptographic, monetary, or remote-code-execution signal present

Risk score

Why this scored 32/100

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