{"id":"RUSTSEC-2026-0581","aliases":[],"title":"`Deque::make_contiguous` could lead to broken invariants","originalDescription":"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).","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"crates.io","name":"heapless","range":">=0.0.0-0, <0.9.4","fixed":"0.9.4"}],"references":[{"url":"https://crates.io/crates/heapless","type":"package"},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0581.html","type":"advisory"},{"url":"https://github.com/rust-embedded/heapless/issues/694","type":"report"},{"url":"https://github.com/rust-embedded/heapless/issues/676","type":"report"}],"sources":[{"name":"osv","at":"2026-11-19T09:33:35.995Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0581","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T09:33:35.995Z"}],"firstSeenAt":"2026-11-19T09:33:35.995Z","publishedAt":"2026-11-18T12:00:00.000Z","modifiedAt":"2026-11-19T09:00:03.911Z"}