RUSTSEC-2018-0018
Dashboard / Vulnerabilities / RUSTSEC-2018-0018
RUSTSEC-2018-0018
Published: 25 Sept 2018Last Modified: 8 Nov 2023
Summary: smallvec creates uninitialized value of any type
Details: 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.
References: https://crates.io/crates/smallvec, https://rustsec.org/advisories/RUSTSEC-2018-0018.html, https://github.com/servo/rust-smallvec/issues/126
Affected packages
Package
Name: smallvec
Purl: pkg:cargo/smallvec
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -0.6.13
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
