RUSTSEC-2026-0580: The treiber stack implementation in heapless had a race condition
Published 2026-11-18 · Updated 2026-11-19
Summary
The treiber stack implementation in the heapless crate contains a race condition that can lead to invalid pointer reads. Maintainers and developers using vulnerable versions of heapless should update their dependencies immediately.
Who is affected
Affected deployments are those utilizing the heapless crate where two threads or execution contexts run concurrently and race. This condition can cause one execution context to read from a pointer that has been invalidated by another context.
Exploitability
The CVSS vector, base score, and EPSS are not documented, and the CISA Known Exploited Vulnerabilities status is no, meaning active exploitation data is not available.
Remediation
- Update the heapless crate to version 0.9.4 or later.
How to check your project
- Check Cargo.toml or Cargo.lock in Rust projects to determine if the heapless crate version falls within the range introduced 0.0.0-0 and fixed 0.9.4.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | heapless |
>= 0.0.0-0, < 0.9.4 | 0.9.4 | cargo update -p heapless --precise 0.9.4 |
FAQ
What packages are affected by RUSTSEC-2026-0580?
The crates.io package heapless is affected for versions introduced at 0.0.0-0 and fixed at 0.9.4.
What is the nature of the vulnerability?
It is a race condition in the treiber stack implementation that allows concurrent threads or execution contexts to cause invalid pointer reads.
Is there any active exploitation reported for this vulnerability?
No, CISA Known Exploited Vulnerabilities status is marked as no and EPSS is not yet available.
Original advisory description
References
- PACKAGE https://crates.io/crates/heapless
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0580.html
- WEB https://github.com/rust-embedded/heapless/pull/704
Source records: RUSTSEC-2026-0580 (OSV.dev).