Security audit: Rounds 1-3 findings in grevm parallel EVM (GREVM-001 ~ R3-009)#97
Draft
Richard1048576 wants to merge 1 commit intomainfrom
Draft
Security audit: Rounds 1-3 findings in grevm parallel EVM (GREVM-001 ~ R3-009)#97Richard1048576 wants to merge 1 commit intomainfrom
Richard1048576 wants to merge 1 commit intomainfrom
Conversation
a00f747 to
4f283f3
Compare
4f283f3 to
fab264e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Multi-round internal security audit of the grevm parallel EVM engine (~3000 LOC).
Round 1 (2026-02-26): 19 findings
invalid_reference_casting(7 instances), data race onContinuousDetectSet::index_flag, unsound concurrent mutation ofParallelStateasync_finality, potential deadlock inTxDependency::add(),next_validation_idx()double-incrementRound 2 (2026-03-02): 10 findings
Round 3 (2026-03-05): 11 findings
async_finalitystill exploitable —lower_ts[txid]never updated byreset_validation_idx(txid+1)new()takes shared refexpect+1u64 overflow in assertionkey_txdependency race with concurrent commitupdate_mv_memoryhides user ETH transfersFix Verification (Round 3)
Cross-Module Findings
assert_eq!= no non-crashing nonce pathArc<Mutex<ParallelState>>incompatible with MVMemorypanic = "abort"bypassesfallback_sequential()entirelyCumulative Statistics
Documentation
docs/security/2026-02-26-security-audit-report.md— Round 1docs/security/2026-03-02-security-audit-round2-report.md— Round 2docs/security-fix-checklist.md— Fix trackingTest plan
cargo +nightly miri test— verify UB fixesRUSTFLAGS="-Z sanitizer=thread" cargo +nightly test— data race detectioncargo bench— no performance regression&mut UnsafeCell)🤖 Generated with Claude Code