CVE-2015-20001: Buffer Overflow

Published Apr 11, 2021
·
Updated

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 siftup or siftdownrange panics. This bug leads to a drop of zeroed memory as an arbitrary type, which can result in a memory safety violation.

Affected Software

1 affected component
rust-lang Rust<1.2.0

Event History

Apr 11, 2021
CVE Published
via MITRE·07:06 PM
Data Sourced
via MITRE·07:06 PM
Description

Frequently Asked Questions

1

What is the vulnerability ID of this issue?

The vulnerability ID of this issue is CVE-2015-20001.

2

What is the severity of CVE-2015-20001?

CVE-2015-20001 has a severity of high.

3

How does CVE-2015-20001 affect Rust?

CVE-2015-20001 affects Rust version up to 1.2.0. It is a bug in the standard library regarding the panic-safety of the BinaryHeap type.

4

What can happen if the comparison of generic elements inside sift_up or sift_down_range panics in Rust?

If the comparison of generic elements inside sift_up or sift_down_range panics in Rust, the binary heap can be left in an inconsistent state and result in a drop of zeroed memory as an arbitrary type, potentially leading to a memory error.

5

Are there any references related to CVE-2015-20001?

Yes, you can find more information about CVE-2015-20001 in the following references: [link1](https://github.com/rust-lang/rust/issues/25842) and [link2](https://github.com/rust-lang/rust/pull/25856).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203