PT-2021-17723 · Stack Dst · Stack Dst
Published
2021-02-22
·
Updated
2022-07-12
·
CVE-2021-28035
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:
stack dst versions prior to 0.6.1
Description:
An issue was discovered in the stack dst crate for Rust. The
push inner function increases the internal length of the array and then calls val.clone(). If the val.clone() call panics, the stack could drop an already dropped element or drop uninitialized memory.Recommendations:
For versions prior to 0.6.1, update to version 0.6.1 or later to resolve the issue. As a temporary workaround, consider modifying the
push inner function to increase the length of the array after elements are cloned, similar to the fix implemented in 2a4d538.Fix
Use of Uninitialized Resource
Double Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Stack Dst