First published: Wed Apr 14 2021(Updated: )
In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Rust-lang Rust | >=1.48.0<1.52.0 | |
Fedoraproject Fedora | =32 | |
Fedoraproject Fedora | =33 | |
Fedoraproject Fedora | =34 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-31162 is a vulnerability in the Rust programming language's standard library, before version 1.52.0, that can result in a double free in the Vec::from_iter function if freeing the element panics.
CVE-2021-31162 has a severity rating of 9.8 out of 10, making it a critical vulnerability.
CVE-2021-31162 affects Rust versions before 1.52.0 and can lead to a double free vulnerability in the Vec::from_iter function.
To fix CVE-2021-31162, update Rust to version 1.52.0 or later, which includes the necessary patches.
Yes, you can find more information about CVE-2021-31162 on the Rust GitHub repository: [link1], [link2], [link3]