RUSTSEC-2021-0033
Dashboard / Vulnerabilities / RUSTSEC-2021-0033
RUSTSEC-2021-0033
Published: 22 Feb 2021Last Modified: 8 Nov 2023
Summary: push_cloned can drop uninitialized memory or double free on panic
Details: Affected versions of `stack_dst` used a `push_inner` function that increased the internal length of the array and then called `val.clone()`. If the `val.clone()` call panics, the stack could drop an already dropped element or drop uninitialized memory. This issue was fixed in `2a4d538` by increasing the length of the array after elements are cloned.
References: https://crates.io/crates/stack_dst, https://rustsec.org/advisories/RUSTSEC-2021-0033.html, https://github.com/thepowersgang/stack_dst-rs/issues/5
Affected packages
Package
Name: stack_dst
Purl: pkg:cargo/stack_dst
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -0.6.1
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
