GitHub Advisoryadvisory · crates.io
GHSA-55m5-whcv-c49c Use of Uninitialized Resource in smallvec
HIGH
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
- https://nvd.nist.gov/vuln/detail/CVE-2018-25023 advisory
- https://github.com/servo/rust-smallvec/issues/126 web
- https://github.com/servo/rust-smallvec/pull/162 web
- https://github.com/servo/rust-smallvec/commit/e64afc8c473d43e375ab42bd33db2d0d4ac4e41b web
- https://github.com/servo/rust-smallvec package
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/smallvec/RUSTSEC-2018-0018.md web
- https://rustsec.org/advisories/RUSTSEC-2018-0018.html web