7.5
CWE
119
Advisory Published
Updated

CVE-2021-28878: Buffer Overflow

First published: Sun Apr 11 2021(Updated: )

In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Rust-lang Rust<1.52.0
Fedoraproject Fedora=32
Fedoraproject Fedora=33
Fedoraproject Fedora=34

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 CVE-2021-28878?

    CVE-2021-28878 is a vulnerability in the standard library in Rust before 1.52.0 that can lead to a memory safety violation.

  • How severe is CVE-2021-28878?

    CVE-2021-28878 has a severity rating of 7.5, which is considered high.

  • Which software versions are affected by CVE-2021-28878?

    Rust versions before 1.52.0 and Fedora versions 32, 33, and 34 are affected by CVE-2021-28878.

  • How can I fix CVE-2021-28878?

    To fix CVE-2021-28878, update Rust to version 1.52.0 or later.

  • Where can I find more information about CVE-2021-28878?

    You can find more information about CVE-2021-28878 in the references provided: https://github.com/rust-lang/rust/issues/82291, https://github.com/rust-lang/rust/pull/82292, https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/

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