RUSTSEC-2021-0045
Dashboard / Vulnerabilities / RUSTSEC-2021-0045
RUSTSEC-2021-0045
Published: 11 Jan 2021Last Modified: 8 Nov 2023
Aliases:
Summary: FromIterator implementation for Vector/Matrix can drop uninitialized memory
Details: The `FromIterator<T>` methods for `Vector` and `Matrix` rely on the type parameter `N` to allocate space in the iterable. If the passed in `N` type parameter is larger than the number of items returned by the iterator, it can lead to uninitialized memory being left in the `Vector` or `Matrix` type which gets dropped.
References: https://crates.io/crates/adtensor, https://rustsec.org/advisories/RUSTSEC-2021-0045.html, https://github.com/charles-r-earp/adtensor/issues/4
Affected packages
Package
Name: adtensor
Purl: pkg:cargo/adtensor
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -None
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
