Access of Uninitialized Pointer Affecting smallvec package, versions <1.0.0
Snyk CVSS
Attack Complexity
Low
Threat Intelligence
EPSS
0.1% (40th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-RUST-SMALLVEC-2326705
- published 27 Dec 2021
- disclosed 27 Dec 2021
- credit Unknown
Introduced: 27 Dec 2021
CVE-2018-25023 Open this link in a new tabHow to fix?
Upgrade smallvec
to version 1.0.0 or higher.
Overview
smallvec is a "Small vector" optimization for Rust: store up to a small number of items on the stack.
Affected versions of this package are vulnerable to Access of Uninitialized Pointer. Affected versions call 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).