PT-2020-17611 · Rust · Alg Ds
Published
2020-08-25
·
Updated
2022-07-12
·
CVE-2020-36432
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
alg ds crate through 2020-08-25
Description
The issue is related to a drop of uninitialized memory in
Matrix::new(). This function internally calls Matrix::fill with(), which uses the *ptr = value pattern to initialize the buffer. This pattern assumes that there is an initialized struct at the address and drops it, resulting in the dropping of an uninitialized struct.Recommendations
For the alg ds crate through 2020-08-25, consider avoiding the use of
Matrix::new() until a fix is available. As a temporary workaround, consider disabling the Matrix::fill with() function to prevent the dropping of uninitialized memory. At the moment, there is no information about a newer version that contains a fix for this issue.Fix
Use of Uninitialized Resource
Improper Initialization
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alg Ds