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

common/gossmap: use the UUID record on reopen.

Public commit record

What the developer wrote

Authored by Rusty Russell

60/100 · Adequate
common/gossmap: use the UUID record on reopen.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This change updates how Core Lightning reloads its saved network map (the 'gossip store') after the file is compacted or reopened. It now reads a special 'UUID' marker at the start of the file to decide whether the file was rewritten from scratch or simply trimmed. If the UUID changed, it rebuilds the in-memory map from scratch; if it matches, it still rebuilds but can trust the equivalent offset. The patch is a robustness improvement, not an obvious security fix, and the commit message does not describe any security relevance.

Recommended action

Treat as a normal code-quality/robustness patch. Review the new error paths to ensure that fatal exits on version/UUID mismatch cannot be triggered by a local attacker manipulating the gossip_store file. If the gossip_store is on a path writable by untrusted users, consider whether the new `errx()` calls could be used for denial of service. No immediate security response is indicated by the available evidence.

Security signals we found

01

Defensive validation added for gossip_store version and UUID record on reopen

02

Truncated store now causes explicit fatal error instead of potential out-of-bounds access

03

Reload path changed from incremental refresh to full map_catchup rebuild

04

No explicit security context, CVE, or vulnerability description in commit or references

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.