{"id":"RUSTSEC-2026-0581","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).","modified":"2026-11-19T09:00:03.911566789Z","published":"2026-11-18T12:00:00Z","database_specific":{"license":"CC0-1.0"},"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"}],"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":{"affects":{"os":[],"functions":["heapless::deque::Deque::make_contiguous"],"arch":[]},"affected_functions":null},"database_specific":{"cvss":null,"informational":"unsound","categories":["memory-corruption"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0581.json"}}],"schema_version":"1.9.2"}