← Back to CVEs
CVE-2021-31162
CRITICAL9.8
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.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published4/14/2021
Last Modified11/21/2024
Sourcenvd
Honeypot Sightings0
Affected Products
fedoraproject:fedorarust-lang:rust
Weaknesses (CWE)
CWE-415
References
https://github.com/rust-lang/rust/issues/83618(cve@mitre.org)
https://github.com/rust-lang/rust/pull/83629(cve@mitre.org)
https://github.com/rust-lang/rust/pull/84603(cve@mitre.org)
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/(cve@mitre.org)
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/(cve@mitre.org)
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/(cve@mitre.org)
https://security.gentoo.org/glsa/202210-09(cve@mitre.org)
https://github.com/rust-lang/rust/issues/83618(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/rust-lang/rust/pull/83629(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/rust-lang/rust/pull/84603(af854a3a-2127-422b-91ae-364da2661108)
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/(af854a3a-2127-422b-91ae-364da2661108)
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/(af854a3a-2127-422b-91ae-364da2661108)
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/(af854a3a-2127-422b-91ae-364da2661108)
https://security.gentoo.org/glsa/202210-09(af854a3a-2127-422b-91ae-364da2661108)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.