HistoryEdit

CVE-2021-31162

Double free in Vec::from_iter specialization when drop panics

Issued
Package
std
Type
Vulnerability
Categories
Details
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31162
Patched
  • >=1.52.0
Unaffected
  • <1.48.0

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.