{"schema_version":"1.9.2","id":"RUSTSEC-2026-0581","published":"2026-11-18T12:00:00Z","modified":"2026-11-19T09:00:03.911566789Z","summary":"`Deque::make_contiguous` could lead to broken invariants","details":"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.\n\nReported by [DRMacIver](https://github.com/DRMacIver) and [https://github.com/MJUCOM](https://github.com/MJUCOM).","affected":[{"package":{"name":"heapless","ecosystem":"crates.io","purl":"pkg:cargo/heapless"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.4"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":["heapless::deque::Deque::make_contiguous"],"os":[]}},"database_specific":{"categories":["memory-corruption"],"cvss":null,"informational":"unsound","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0581.json"}}],"references":[{"type":"PACKAGE","url":"https://crates.io/crates/heapless"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0581.html"},{"type":"REPORT","url":"https://github.com/rust-embedded/heapless/issues/694"},{"type":"REPORT","url":"https://github.com/rust-embedded/heapless/issues/676"}],"database_specific":{"license":"CC0-1.0"}}