RUSTSEC-2021-0039
Dashboard / Vulnerabilities / RUSTSEC-2021-0039
RUSTSEC-2021-0039
Published: 4 Jan 2021Last Modified: 8 Nov 2023
Aliases:
Summary: panic in user-provided `Endian` impl triggers double drop of T
Details: Affected versions of the crate does not guard against panic from user-provided impl of `Endian` trait, which is a safe trait that users can implement. If a user-provided implementation of the `Endian` trait panics, double-drop is triggered due to the duplicated ownership of `T` created by `ptr::read()`. Double-drop (or double free) can cause memory corruption in the heap.
References: https://crates.io/crates/endian_trait, https://rustsec.org/advisories/RUSTSEC-2021-0039.html, https://gitlab.com/myrrlyn/endian_trait/-/issues/1
Affected packages
Package
Name: endian_trait
Purl: pkg:cargo/endian_trait
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -None
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
