Skip to content

CVE-2015-20001 In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe. The binary heap is left in an inconsistent state when the comparison of generic elements inside sift_up or sift_down_range p...

HighCVSS 7.5 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known

Description

In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe. The binary heap is left in an inconsistent state when the comparison of generic elements inside sift_up or sift_down_range panics. This bug leads to a drop of zeroed memory as an arbitrary type, which can result in a memory safety violation.

Affected products

ProductAffected versionsFixed in
debian/rustc(Debian:12) < 1.2.0+dfsg1-1 1.2.0+dfsg1-1
debian/rustc(Debian:13) < 1.2.0+dfsg1-1 1.2.0+dfsg1-1
debian/rustc(Debian:14) < 1.2.0+dfsg1-1 1.2.0+dfsg1-1
rust-lang rust < 1.2.0 1.2.0

References