CVE-2021-31162

NameCVE-2021-31162
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severityhigh

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rustc (PTS)stretch1.34.2+dfsg1-1~deb9u1vulnerable
stretch (security)1.41.1+dfsg1-1~deb9u1vulnerable
buster1.41.1+dfsg1-1~deb10u1vulnerable
bullseye1.48.0+dfsg1-2vulnerable
bookworm1.50.0+dfsg1-1vulnerable
sid1.55.0+dfsg1-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
rustcsource(unstable)1.53.0+dfsg1-1

Notes

[bullseye] - rustc <no-dsa> (Minor issue)
[buster] - rustc <no-dsa> (Minor issue)
[stretch] - rustc <no-dsa> (Minor issue)
https://github.com/rust-lang/rust/issues/83618
https://github.com/rust-lang/rust/pull/83629
https://github.com/rust-lang/rust/commit/542f441d445026d0996eebee9ddddee98f5dc3e5

Search for package or bug name: Reporting problems