Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWMzbTMtYzM5cS1wdjIz
Out of bounds write in slice-deque
Affected versions of this crate entered a corrupted state if mem::size_of::() % allocation_granularity() != 0 and a specific allocation pattern was used: sufficiently shifting the deque elements over the mirrored page boundary.
This allows an attacker that controls controls both element insertion and removal to corrupt the deque, such that reading elements from it would read bytes corresponding to other elements in the deque. (e.g. a read of T could read some bytes from one value and some bytes from an adjacent one, resulting in a T whose value representation is not meaningful). This is undefined behavior.
The flaw was corrected by using a pair of pointers to track the head and tail of the deque instead of a pair of indices. This pair of pointers are represented using a Rust slice.
Permalink: https://github.com/advisories/GHSA-c3m3-c39q-pv23JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWMzbTMtYzM5cS1wdjIz
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 3 years ago
Updated: over 1 year ago
CVSS Score: 9.8
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-c3m3-c39q-pv23, CVE-2019-15543
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-15543
- https://github.com/gnzlbg/slice_deque/issues/57
- https://rustsec.org/advisories/RUSTSEC-2019-0002.html
- https://github.com/advisories/GHSA-c3m3-c39q-pv23
Blast Radius: 29.5
Affected Packages
cargo:slice-deque
Dependent packages: 17Dependent repositories: 1,028
Downloads: 1,564,142 total
Affected Version Ranges: < 0.2.0
Fixed in: 0.2.0
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16
All unaffected versions: 0.2.0, 0.2.2, 0.2.3, 0.2.4, 0.3.0