PT-2022-23175 · Unknown · Linked List Allocator

Evan Richter

·

Published

2022-09-07

·

Updated

2024-06-15

·

CVE-2022-36086

CVSS v3.1

8.4

High

VectorAV: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>().

Exploit

Fix

Memory Corruption

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-36086
GHSA-XG8P-34W2-J49J
OPENSUSE-SU-2024:12469-1
RUSTSEC-2022-0063

Affected Products

Linked List Allocator