Critical, CVSS 9.1MavenPublished
Besu VM vulnerable to gas allocation error in CALL operations
CVE-2022-36025 · GHSA-4456-w38r-m53x
- Affected
- Maven org.hyperledger.besu:evm >= 22.4.0-RC1, < 22.7.1
- Fixed in
- 22.7.1· Vendor fix available
- Issue
- Impact An error in 32 bit signed and unsigned types in the calculation of available gas in the CALL operations (including DELEGATECALL) results in incorrect gas being passed into called contracts and incorrect gas being returned after call execution. Where the amount of gas makes a difference in the success or failure, or if the gas is a negative 64 bit value, the execution will result in a different state root than expected, resulting in a consensus failure in networks with multiple EVM implementations. In networks with a single EVM implementation this can be used to execute with significantly more gas than then transaction requested, possibly exceeding gas limitations. Patches Version 22.7.1 contains a fix, ensuring that excess gas will not be allocated to inner transaction calls and correcting the excess gas errors. Workarounds Reverting to version 22.1.3 or earlier will prevent incorrect execution. However many ethereum mainnet networks require changes in more recent versions of…
Recommended action: Upgrade to 22.7.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.