CVE-2021-31162
Critical
Description
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.
SeverityCritical
CVSS9.8
Exploit probability—
Product
Rust
PublishedApr 14, 2021
First seenApr 14, 2021
How to fix
Update
- rust-lang rust1.52.0 or later
Vendor advisories
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/
- security.gentoo.org/glsa/202210-09
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rust-lang rust | 1.48.0 ≤ v < 1.52.0 | 1.52.0 |
| fedoraproject fedora | 32, 33, 34 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.