RUSTSEC-2026-0575: `Spsc::peek` used `Relaxed` ordering where it should have use `Acquire`
Published 2026-11-18 · Updated 2026-11-19
Summary
The Spsc::peek function in heapless uses Relaxed memory ordering instead of Acquire, which could lead to undefined behavior through a race condition. Developers using heapless versions before 0.9.4 should update to mitigate this issue.
Who is affected
This vulnerability affects deployments using the heapless crate in versions from 0.0.0-0 to before 0.9.4. The race condition could lead to undefined behavior when using the Spsc channel's peek functionality concurrently. Systems relying on proper synchronization guarantees may experience memory safety violations if this condition is triggered in production code.
Exploitability
Not documented. The CVSS vector and base score are not computed, and EPSS data is not yet available. CISA KEV status is not YES for this vulnerability.
Remediation
- Update heapless to version 0.9.4 or later
- Review any code using Spsc::peek to ensure proper synchronization if immediate update is not possible
How to check your project
- Check Cargo.toml for heapless version constraints ranging from 0.0.0-0 to <0.9.4
- Run `cargo tree | grep heapless` and inspect the output for affected versions
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 is the vulnerability in heapless?
The Spsc::peek function uses Relaxed memory ordering instead of Acquire, which could lead to undefined behavior through a race condition.
Who discovered this vulnerability?
The vulnerability was reported by Jacob Finkelman, as noted in the vulnerability record.
What version of heapless fixes this issue?
Version 0.9.4 of heapless contains the fix for this vulnerability.
Is there active exploitation of this vulnerability?
No, CISA KEV status is not YES for this vulnerability, and no exploit code is documented.
Original advisory description
References
- PACKAGE https://crates.io/crates/heapless
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0575.html
- WEB https://github.com/rust-embedded/heapless/pull/703
Source records: RUSTSEC-2026-0575 (OSV.dev).