GHSA-66p5-j55p-32r9
Dashboard / Vulnerabilities / GHSA-66p5-j55p-32r9
GHSA-66p5-j55p-32r9
Published: 25 Aug 2021Last 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://github.com/servo/rust-smallvec/issues/126, https://github.com/servo/rust-smallvec/pull/162, https://github.com/servo/rust-smallvec, https://rustsec.org/advisories/RUSTSEC-2018-0018.html
Affected packages
Package
Name: smallvec
Purl: pkg:cargo/smallvec
Affected ranges
Type: SEMVER
Events:
Introduced- 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
