PT-2020-16111 · Rust · Linked-Hash-Map
Published
2020-06-23
·
Updated
2021-08-25
·
CVE-2020-25573
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
linked-hash-map crate versions prior to 0.5.3
Description
An issue was discovered in the linked-hash-map crate, where it creates an uninitialized NonNull pointer, violating a non-null constraint. The 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().Recommendations
For versions prior to 0.5.3, update to version 0.5.3 or later to resolve the issue. As a temporary workaround, consider avoiding the use of
mem::uninitialized() in the affected crate until a patch is available.Exploit
Fix
Access of Uninitialized Pointer
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linked-Hash-Map