PT-2022-23175

CVE-2022-36086

·

Published

2022-09-07

·

Updated

2024-06-15

Description by

CVSS 3.1
8.4
High
MetricsAV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions linked list allocator versions prior to 0.10.2
Description The heap initialization methods in linked list allocator were missing a minimum size check for the given heap size argument, which could lead to out-of-bound writes when a heap was initialized with a size smaller than 3 * size of::<usize>. This issue affects all initialization functions on the Heap and LockedHeap types, including Heap::new, Heap::init, Heap::init from slice, and LockedHeap::new, as well as multiple uses of the Heap::extend method.
Recommendations To resolve the issue, upgrade to version 0.10.2 or later. As a temporary workaround, ensure that the heap is only initialized with a size larger than 3 * size of::<usize> and that the Heap::extend method is only called with sizes larger than 2 * size of::<usize>(). Also, ensure that the total heap size is (and stays) a multiple of 2 * size of::<usize>().
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-XG8P-34W2-J49J
OPENSUSE-SU-2024:12469-1
RUSTSEC-2022-0063
Found an issue in the description? Have something to add? Feel free to write us 👾