CVE-2018-25023: High severity Servo Smallvec Rust vulnerability

Published Dec 26, 2021
·
Updated

Affected versions of this crate called mem::uninitialized() to create values of a user-supplied type T. This is unsound e.g. if T is a reference type (which must be non-null and thus may not remain uninitialized). The flaw was corrected by avoiding the use of mem::uninitialized(), using MaybeUninit instead.

Other sources

An issue was discovered in the smallvec crate before 0.6.13 for Rust. It can create an uninitialized value of any type, including a reference type.

Affected Software

2 affected componentsFixes available
rust/smallvec<0.6.13
0.6.13
Servo Smallvec Rust<0.6.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/smallvec to a version that resolves this vulnerability.

    Fixed in 0.6.13
  2. Upgrade

    Upgrade smallvec to a version that resolves this vulnerability.

    Fixed in 0.6.13

Event History

Dec 26, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Dec 27, 2021
Data Sourced
via OSV·12:15 AM
DescriptionSeverity
Jan 6, 2022
Advisory Published
10:20 PM

Frequently Asked Questions

1

What is the severity of CVE-2018-25023?

CVE-2018-25023 is considered a serious vulnerability due to potential undefined behavior when using uninitialized memory.

2

How do I fix CVE-2018-25023?

To fix CVE-2018-25023, update your version of the smallvec crate to 0.6.13 or later, which replaces the use of mem::uninitialized() with MaybeUninit.

3

Which versions of smallvec are affected by CVE-2018-25023?

Versions of smallvec prior to 0.6.13 are affected by CVE-2018-25023.

4

What kind of vulnerabilities does CVE-2018-25023 expose?

CVE-2018-25023 exposes vulnerabilities related to the use of uninitialized references, potentially leading to unsafe memory usage.

5

Is CVE-2018-25023 related to Rust's memory safety?

Yes, CVE-2018-25023 directly impacts Rust's memory safety guarantees due to improper handling of uninitialized memory.

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