9.8

CVE-2022-36086: rust-osdev linked-list-allocator

CVSS: 9.8v3.1CriticalModified
AliasesGHSA-xg8p-34w2-j49jRUSTSEC-2022-0063
Published 07-09-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-36086 is a critical (CVSS 9.8) vulnerability in rust-osdev linked-list-allocator. EPSS estimates a 0.86% chance of exploitation in the next 30 days, higher than 58% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.86%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 07-09-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.86%

Chance of exploitation in the next 30 days

Percentile

58%

Versus all other CVEs

30-day change

+0.02 pp

From 0.84% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.86%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Linked List Allocator

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Crates.Io1 product
  • linked_list_allocator< 0.10.2 | ≥ 0.0.0-0, < 0.10.2
Rust-osdev1 product

2 vendors · 2 products

References

7 links