Skip to main content
VulnerabilityPublished

Heapless: `IndexMap::truncate` could lead to an inconsistent state

Affects heaplessSource GCVE Database

0
Severity
High

Rated High by Threat Radar's AI analysis

Patch
Available – fixed in 0.9.4

Data as of 19 Nov 2026, 09:50 UTC

What to do

Upgrade heapless to 0.9.4.

Affected software

ProductAffectedFixed in
crates.ioheaplesspkg:cargo/heaplessOther threatsAffected
  • >=0.0.0-0 <0.9.4
Fixed in
  • 0.9.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to Heapless version 0.9.4 or later, where the issue with `IndexMap::truncate` has been fixed. No other mitigation is required as the patch addresses the root cause.

Description

The Heapless crate's `IndexMap::truncate` function did not properly rebuild internal indices, causing an inconsistent state that could lead to memory corruption. This flaw was reported by Jacob Finkelman and affects versions prior to 0.9.4.

References

Community reviews

Loading reviews…