# RUSTSEC-2026-0580: The treiber stack implementation in heapless had a race condition

- Database: RustSec
- Published: 2026-11-18
- Modified: 2026-11-19

## Affected versions

- heapless (crates.io): fixed in 0.9.4

## Description

In the affected versions, it was possible for two threads or execution contexts running concurrently to race, causing one to read out of a pointer that had been invalidated by another execution context.

Reported by [Jacob Finkelman](https://github.com/Eh2406).

## References

- https://crates.io/crates/heapless
- https://rustsec.org/advisories/RUSTSEC-2026-0580.html
- https://github.com/rust-embedded/heapless/pull/704

Page: https://cve.now/RUSTSEC-2026-0580

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
