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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2021-04-11T19:06:53

Updated: 2024-08-06T08:58:26.443Z

Reserved: 2021-04-11T00:00:00

Link: CVE-2015-20001

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2021-04-11T20:15:12.237

Modified: 2024-11-21T02:26:32.737

Link: CVE-2015-20001

cve-icon Redhat

No data.