Original 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.
Affected software
- Rust ≥ 1.48.0 < 1.52.0 Fixed in: 1.52.0 exact match
Details
- Published
- 2021-04-14
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-415
- EPSS (30-day exploit probability)
- 2.89% (percentile 87)
References
- cve.org/CVE-2021-31162
- nvd.nist.gov/vuln/detail/CVE-2021-31162
- github.com/rust-lang/rust/issues/83618
- github.com/rust-lang/rust/pull/83629
- github.com/rust-lang/rust/pull/84603
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V...
- security.gentoo.org/glsa/202210-09
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.