Skip to content

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

Merged
vladjdk merged 1 commit into
v0.39.xfrom
mergify/bp/v0.39.x/pr-5803
Apr 22, 2026
Merged

vladjdk merged 1 commit into
v0.39.xfrom
mergify/bp/v0.39.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.

@github-actions

Copy link
Copy Markdown

🔒 WARNING: unsigned commits detected

This pull request contains 1 commit(s) without a verified signature.

How to fix:

  1. Set up commit signing (GPG or SSH).
  2. Amend/rebase so every commit in this PR is verified-signed.
  3. Push the updated branch and open a new PR, or ask a maintainer to reopen once fixed.

Docs: https://docs.github.com/authentication/managing-commit-signature-verification

Unsigned commits:

@vladjdk
vladjdk merged commit e4260d2 into v0.39.x Apr 22, 2026
34 checks passed
@vladjdk
vladjdk deleted the mergify/bp/v0.39.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