Access of Uninitialized Pointer Affecting smallvec package, versions <1.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (49th 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 IDSNYK-RUST-SMALLVEC-2326705
  • published27 Dec 2021
  • disclosed27 Dec 2021
  • creditUnknown

Introduced: 27 Dec 2021

CVE-2018-25023  (opens in a new tab)
CWE-824  (opens in a new tab)

How 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).

CVSS Scores

version 3.1