CVE-2022-21685 Integer underflow in Frontier
MediumCVSS 6.5
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Frontier is Substrate's Ethereum compatibility layer. Prior to commit number 8a93fdc6c9f4eb1d2f2a11b7ff1d12d70bf5a664, a bug in Frontier's MODEXP precompile implementation can cause an integer underflow in certain conditions. This will cause a node crash for debug builds. For release builds (and production WebAssembly binaries), the impact is limited as it can only cause a normal EVM out-of-gas. Users who do not use MODEXP precompile in their runtime are not impacted. A patch is available in pull request #549.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io pallet-evm-precompile-modexp(crates.io) | <= 1.0.0 | after 1.0.0 | Fixed |
| parity frontier | <= 2022-01-13 | after 2022-01-13 | Fixed |
| paritytech frontier | = < 8a93fdc | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io pallet-evm-precompile-modexp(crates.io) | <= 1.0.0 | No fix listed |
| paritytech frontier | = < 8a93fdc | No fix listed |
| parity frontier | <= 2022-01-13 | No fix listed |
References
- github.com patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- github.com product
- github.com