7.5
CWE
119
Advisory Published
Updated

CVE-2015-20001: Buffer Overflow

First published: Sun 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 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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Rust-lang Rust<1.2.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID of this issue?

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

  • What is the severity of CVE-2015-20001?

    CVE-2015-20001 has a severity of high.

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

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

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203