# CVE-2022-36086: linked_list_allocator vulnerable to out-of-bound writes on `Heap` initialization and `Heap::extend`

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-07T12:00:00.000Z
- Modified: 2026-10-12T18:00:02.664Z
- Also known as: GHSA-xg8p-34w2-j49j, RUSTSEC-2022-0063
- Weaknesses: CWE-119, CWE-787, CWE-1284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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>()`.

(As written by CVE List.)

## Affected

- rust-osdev linked-list-allocator: < 0.10.2; before 0.10.2
- linked_list_allocator (crates.io): before 0.10.2; from 0.0.0-0 before 0.10.2

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/rust-osdev/linked-list-allocator/security/advisories/GHSA-xg8p-34w2-j49j> (exploit, mitigation, third-party-advisory, web)
- <https://github.com/rust-osdev/linked-list-allocator/commit/013b0758643943e8df5b17bbb495460ff47e8bbf> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36086> (advisory)
- <https://github.com/advisories/GHSA-xg8p-34w2-j49j> (advisory)
- <https://github.com/rust-osdev/linked-list-allocator> (package)
- <https://rustsec.org/advisories/RUSTSEC-2022-0063.html> (advisory, web)
- <https://crates.io/crates/linked_list_allocator> (package)

## Sources

- CVE List: [CVE-2022-36086](https://www.cve.org/CVERecord?id=CVE-2022-36086), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-xg8p-34w2-j49j](https://github.com/advisories/GHSA-xg8p-34w2-j49j), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0063](https://rustsec.org/advisories/RUSTSEC-2022-0063.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2022-36086](https://nvd.nist.gov/vuln/detail/CVE-2022-36086), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36086 · Whole record: https://cve.day/CVE-2022-36086.json · Rebuilt by cve.day 2026-11-25T22:58:14.762Z
