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

net: check for empty header before calling FillBlock

Public commit record

What the developer wrote

Authored by Eugene Siegel

73/100 · Adequate
net: check for empty header before calling FillBlock

Previously in debug builds, this would cause an Assume crash if
FillBlock had been called previously. This could happen when multiple
blocktxn messages were received.

Co-Authored-By: Greg Sanders <gsanders87@gmail.com>
✓ 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 how Bitcoin Core handles repeated compact-block transaction messages from peers. In debug builds, receiving multiple blocktxn messages for the same block could trigger an internal consistency check (Assume) crash because the code tried to look up information from a header that had already been cleared. The patch detects the empty-header situation, marks the peer as misbehaving, and returns early instead of crashing. It is a robustness fix that prevents a debug-only crash and tightens handling of misbehaving peers.

Recommended action

Apply the patch. It is a low-risk defensive fix. Node operators running debug builds are the most directly affected; release builds do not crash on Assume failure but still benefit from cleaner peer handling. No immediate emergency response is indicated.

Security signals we found

01

Debug-only assertion crash (Assume) reachable via P2P message handling

02

Repeated blocktxn messages for same block can trigger null-header dereference/lookup

03

Peer misbehavior handling added to reject duplicate compact-block reconstruction attempts

04

No remote code execution or consensus change; denial-of-service/robustness issue

Risk score

Why this scored 44/100

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