RUSTSEC-2026-0581

published 18 Nov 2026 · updated 19 Nov 2026

`Deque::make_contiguous` could lead to broken invariants

5.0Medium

No exploitation in the wild has been reported. Fixed in heapless 0.9.4.

In some branches, `Deque::make_contiguous` 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](https://github.com/DRMacIver) and [https://github.com/MJUCOM](https://github.com/MJUCOM).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cargo: heapless>=0.0.0-0 <0.9.40.9.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in heapless (Cargo), strongest first

Embed

A live severity badge for an advisory, README or ticket

RUSTSEC-2026-0581 severity on Zeptric[![RUSTSEC-2026-0581](https://zeptric.io/badge/cve/RUSTSEC-2026-0581.svg)](https://zeptric.io/cve/RUSTSEC-2026-0581)