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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2015-20001 vendor-advisory
- github.com exploit issue-tracking patch third-party-advisory
- github.com issue-tracking patch third-party-advisory