Skip to content

fix(blocksync): prevent maxPeerHeight poisoning (backport #5803) - #5806

Merged
mergify[bot] merged 1 commit into
v0.38.xfrom
mergify/bp/v0.38.x/pr-5803
Apr 22, 2026
Merged

mergify[bot] merged 1 commit into
v0.38.xfrom
mergify/bp/v0.38.x/pr-5803

Conversation

@mergify

@mergify mergify Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Cherry-picks berachain/cometbft#40 (@fridrik01) into upstream blocksync/. Fixes a deadlock where a malicious peer can poison maxPeerHeight with an inflated base/height that no peer can serve, stalling IsCaughtUp forever.

Taken from commit 1 of the PR rather than the final state, which keeps the base > height ban and PopRequest recompute that commit 2 stripped back out.


This is an automatic backport of pull request #5803 done by Mergify.

@vladjdk
vladjdk enabled auto-merge April 22, 2026 21:50
@mergify
mergify Bot merged commit 4928b26 into v0.38.x Apr 22, 2026
28 of 30 checks passed
@mergify
mergify Bot deleted the mergify/bp/v0.38.x/pr-5803 branch April 22, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant