[Bug] Out of memory (OOM) panic in ProvingKey::<Testnet3>::read_le
#2178
Labels
bug
Something isn't working
ProvingKey::<Testnet3>::read_le
#2178
Out of memory (OOM) panic in
ProvingKey::<Testnet3>::read_le
Author(s): @Fuzzinglabs
Date: 20/11/2023
Executive Summary
We (@FuzzingLabs) found an Out of memory (OOM) crash while using
ProvingKey::<Testnet3>::read_le
Vulnerability Details
Environment
Steps to Reproduce
Root Cause Analysis
This line of code tries to create a vector too big (
1 << log_size - 1
)
https://github.com/AleoHQ/snarkVM/blob/c620cc4a89bcd81e9de07e827886a2a57e4375e6/algorithms/src/fft/domain.rs#L611C12-L611C12
Detailed Behavior
Recommendations
Sanitize the input to avoid having a too big
log_size
The text was updated successfully, but these errors were encountered: