PT-2021-18549

CVE-2021-29936

·

Published

2021-01-11

·

Updated

2021-08-25

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions adtensor crate versions through 0.0.3 adtensor crate versions through 2021-01-11
Description An issue was discovered in the adtensor crate for Rust. There is a drop of uninitialized memory via the FromIterator implementation for Vector and Matrix. 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.
Recommendations For adtensor crate versions through 0.0.3, update to a version later than 0.0.3 to resolve the issue. For adtensor crate versions through 2021-01-11, update to a version later than 2021-01-11 to resolve the issue. As a temporary workaround, consider restricting the use of the FromIterator implementation for Vector and Matrix until a patch is available. Avoid using the FromIterator method with type parameters larger than the number of items returned by the iterator to minimize the risk of exploitation.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-RG4M-GWW5-7P47
RUSTSEC-2021-0045
Found an issue in the description? Have something to add? Feel free to write us 👾