GitHub Advisoryadvisory · crates.io

GHSA-55m5-whcv-c49c Use of Uninitialized Resource in smallvec

HIGH Published 2022-01-06 Modified 2023-06-13 Official page ↗
Aliases
CVE-2018-25023
Ecosystem
crates.io
Packages
smallvec
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-908
Reviewed
2022-01-06

Affected packages

• crates.io smallvec: < 0.6.13 → fixed in 0.6.13

Description

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.

Related

Alias · CVE (1)

  • CVE-2018-25023 An issue was discovered in the smallvec crate before 0.6.13 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-908 Use of Uninitialized Resource weakness

References