CVE-2019-15543 – slice-deque
Package
Manager: cargo
Name: slice-deque
Vulnerable Version: >=0 <0.2.0
Severity
Level: Critical
CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00433 pctl0.61951
Details
Out of bounds write in slice-deque Affected versions of this crate entered a corrupted state if mem::size_of::<T>() % 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.
Metadata
Created: 2021-08-25T20:44:10Z
Modified: 2023-06-13T20:56:39Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-c3m3-c39q-pv23/GHSA-c3m3-c39q-pv23.json
CWE IDs: ["CWE-787"]
Alternative ID: GHSA-c3m3-c39q-pv23
Finding: F111
Auto approve: 1