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

Fix `ChainstateManager::AddChainstate()` assertion crash

Public commit record

What the developer wrote

Authored by stringintech

65/100 · Adequate
Fix `ChainstateManager::AddChainstate()` assertion crash

Check mempool exists before accessing size when prev_chainstate doesn't have initialized mempool.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This is a one-line fix in Bitcoin Core that prevents a program crash (assertion failure) when adding a new chainstate. The crash could occur if the previous chainstate did not have a memory pool (mempool) initialized. The change simply checks whether the mempool exists before checking its size, avoiding an invalid memory access. It is a defensive hardening fix rather than a user-triggerable exploit path under normal operation.

Recommended action

Treat as a low-severity hardening fix. Review whether any call path allows an unprivileged user or network message to reach AddChainstate() without a mempool; if not, no urgent action beyond merging is warranted. Include in release notes as a stability fix.

Security signals we found

01

Null pointer dereference / assertion crash in validation code

02

Defensive null check added before pointer dereference

03

Crash in chainstate management during initialization/IBD

04

No evidence of remote triggerability in the diff

Risk score

Why this scored 31/100

Our methodology →
Potential impact 8/30
Exploitability 3/25
Stealth signal 4/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.