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

chanbackup: Store the latest recvd peer storage only

Public commit record

What the developer wrote

Authored by Aditya Sharma

73/100 · Adequate
chanbackup: Store the latest recvd peer storage only

Node should not store SCB that is older than what we already have.

Changelog-Fixed: Protocol: we now only store the most recent peer backup when recovering from peers.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change fixes a bug in Core Lightning's channel backup plugin. Previously, when recovering a backup from a peer, the node would save whatever backup the peer sent, even if it was older than the backup already stored. Now it checks a timestamp inside the backup and only keeps the newest one. Using an old backup during recovery could, in edge cases, lead to stale or incorrect channel state being restored.

Recommended action

Treat as a low-to-moderate security fix. Users relying on experimental peer storage should upgrade to ensure recovery uses the most recent backup. No immediate emergency response is indicated, but the fix should be included in the next release.

Security signals we found

01

Prevents storage of stale/outdated peer channel backups

02

Adds timestamp comparison before overwriting critical recovery data

03

Protects against potential downgrade/rollback of SCB state during peer storage recovery

04

Changelog labels the fix under Protocol behavior

Risk score

Why this scored 61/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 10/15
Affected reach 10/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.