CVE-2022-36086
Rust vulnerability analysis and mitigation

Overview

CVE-2022-36086 is a high-severity vulnerability affecting the linked-list-allocator Rust crate versions <=0.10.1. The vulnerability was discovered in September 2022 and involves potential out-of-bounds writes during heap initialization and extension operations. The issue affects all initialization functions on the Heap and LockedHeap types, including Heap::new, Heap::init, Heap::initfromslice, and LockedHeap::new, as well as multiple uses of the Heap::extend method (GitHub Advisory).

Technical details

The vulnerability stems from multiple implementation flaws: 1) Heap initialization methods lacked minimum size checks for heap size arguments, potentially leading to out-of-bounds writes when initialized with size smaller than 3 * size_of::. 2) The Heap::extend method could cause out-of-bounds writes when called with sizes smaller than two usizes, when called on an empty heap, or when the heap size was not properly aligned. 3) Unaligned writes could occur when calling Heap::extend on a heap whose size is not a multiple of two usizes, leaving the heap in an unexpected state (GitHub Advisory).

Impact

The vulnerability could lead to out-of-bounds writes, which could potentially allow attackers to corrupt memory. This could result in undefined behavior, particularly on platforms that fault on unaligned writes. The issue affects all users of the linked-list-allocator crate versions 0.10.1 and earlier (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.10.2 of the linked-list-allocator crate. The patch includes several fixes: initialization functions now panic if given size is insufficient, extend method panics on uninitialized heaps, small extend calls are buffered internally, and the size() method returns the usable heap size. As a workaround, users should ensure heap initialization size is larger than 3 size_of::, Heap::extend is called with sizes larger than 2 sizeof::(), and total heap size remains a multiple of 2 * sizeof::() (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2fjw-whxm-9v4qCRITICAL9.3
  • RustRust
  • nftnl
NoYesNov 25, 2025
CVE-2025-66017HIGH8.2
  • RustRust
  • cggmp21
NoYesNov 25, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0132N/AN/A
  • RustRust
  • maxminddb
NoYesNov 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management