CVE-2022-36086
published high CVSS 3.1 · 8.4linked_list_allocator vulnerable to out-of-bound writes on `Heap` initialization and `Heap::extend`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rust-osdev | — | linked-list-allocator< 0.10.2 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-audit-advisory-dbaarch64 | Advisory build | 20221102-1.1 | OPENSUSE-SU-2024:12469-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-audit-advisory-dbppc64le | Advisory build | 20221102-1.1 | OPENSUSE-SU-2024:12469-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-audit-advisory-dbs390x | Advisory build | 20221102-1.1 | OPENSUSE-SU-2024:12469-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-audit-advisory-dbx86_64 | Advisory build | 20221102-1.1 | OPENSUSE-SU-2024:12469-1 |
Description
linked_list_allocator is an allocator usable for no_std systems. Prior to version 0.10.2, the heap initialization methods were missing a minimum size check for the given heap size argument. This could lead to out-of-bound writes when a heap was initialized with a size smaller than `3 * size_of::<usize>` because of metadata write operations. This vulnerability impacts all the initialization functions on the `Heap` and `LockedHeap` types, including `Heap::new`, `Heap::init`, `Heap::init_from_slice`, and `LockedHeap::new`. It also affects multiple uses of the `Heap::extend` method. Version 0.10.2 contains a patch for the issue. As a 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>()`.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rust-osdev | linked-list-allocator | < 0.10.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-119 CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-787 CWE-787: Out-of-bounds Write
References
2Provider assertions
3GitHub_M · cna
linked_list_allocator vulnerable to out-of-bound writes on `Heap` initialization and `Heap::extend`
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 053be3f2aa8e33a86ae052b3ad75ae80e30c9b3f60dfaedd7ef7185e36ca98d8
- Ingested
- 23 Sep 2026, 08:01:20 UTC
- Source record
- Official CVE record