RUSTSEC-2020-0145
Dashboard / Vulnerabilities / RUSTSEC-2020-0145
RUSTSEC-2020-0145
Published: 2 Nov 2020Last Modified: 8 Nov 2023
Aliases:
Summary: Use-after-free when cloning a partially consumed `Vec` iterator
Details: The `IntoIter` `Clone` implementation clones the whole underlying `Vec`. If the iterator is partially consumed the consumed items will be copied, thus creating a use-after-free access. A proof of concept is available in the original bug report.
References: https://crates.io/crates/heapless, https://rustsec.org/advisories/RUSTSEC-2020-0145.html, https://github.com/japaric/heapless/issues/181
Affected packages
Package
Name: heapless
Purl: pkg:cargo/heapless
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
