RUSTSEC-2026-0581: `Deque::make_contiguous` could lead to broken invariants
Published Nov 18, 2026
·Updated
In some branches, Deque::makecontiguous set the back value to either 0 or N when it shouldn't, leading to broken invariants and out-of-bounds writes.
Reported by DRMacIver and https://github.com/MJUCOM.
Affected Software
1 affected componentFixes available
rust/heapless>=0.0.0-0<0.9.4
0.9.4
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/heaplessto a version that resolves this vulnerability.Fixed in 0.9.4
Event History
Nov 18, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionAffected Software
Frequently Asked Questions
1
Which deployments should be investigated first?
Investigate Rust applications using the heapless crate that call Deque::make_contiguous. The issue occurs in some branches of that method and can result in broken deque invariants and out-of-bounds writes.
2
Does the advisory identify affected or fixed heapless versions?
No affected or fixed version numbers are provided in the available advisory data. Use the referenced heapless issue and advisory for version-specific remediation details.