CVE-2021-31162: Double Free
In the standard library in Rust before 1.52.0, a double free can occur in the Vec::fromiter function if freeing the element panics.
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is CVE-2021-31162?
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.
What is the severity of CVE-2021-31162?
CVE-2021-31162 has a severity rating of 9.8 out of 10, making it a critical vulnerability.
How does CVE-2021-31162 affect Rust?
CVE-2021-31162 affects Rust versions before 1.52.0 and can lead to a double free vulnerability in the Vec::from_iter function.
How can CVE-2021-31162 be fixed?
To fix CVE-2021-31162, update Rust to version 1.52.0 or later, which includes the necessary patches.
Are there any references for CVE-2021-31162?
Yes, you can find more information about CVE-2021-31162 on the Rust GitHub repository: [link1], [link2], [link3]