HistoryEdit

RUSTSEC-2020-0026

linked-hash-map creates uninitialized NonNull pointer

Issued
Package
linked-hash-map (crates.io)
Type
INFO Unsound
Aliases
Details
https://github.com/contain-rs/linked-hash-map/pull/100
CVSS Score
9.8 CRITICAL
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
  • >=0.5.3

Description

Affected versions of this crate called mem::uninitialized() to create a NonNull<T>, which is undefined behavior.

The flaw was corrected by avoiding the use of mem::uninitialized().