CWE
415
Advisory Published
Updated

CVE-2021-31162: Double Free

First published: Wed Apr 14 2021(Updated: )

In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Rust-lang Rust>=1.48.0<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-31162?

    CVE-2021-31162 is a vulnerability in the Rust programming language's standard library, before version 1.52.0, that can result in a double free in the Vec::from_iter function if freeing the element panics.

  • What is the severity of CVE-2021-31162?

    CVE-2021-31162 has a severity rating of 9.8 out of 10, making it a critical vulnerability.

  • How does CVE-2021-31162 affect Rust?

    CVE-2021-31162 affects Rust versions before 1.52.0 and can lead to a double free vulnerability in the Vec::from_iter function.

  • How can CVE-2021-31162 be fixed?

    To fix CVE-2021-31162, update Rust to version 1.52.0 or later, which includes the necessary patches.

  • Are there any references for CVE-2021-31162?

    Yes, you can find more information about CVE-2021-31162 on the Rust GitHub repository: [link1], [link2], [link3]

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