{"id":"RUSTSEC-2026-0581","aliases":["RUSTSEC-2026-0581"],"related":[],"kind":"vulnerability","state":"published","title":"`Deque::make_contiguous` could lead to broken invariants","summary":"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).","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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).","format":"markdown","source":"rustsec"}],"published":"2026-11-18T12:00:00.000Z","modified":"2026-11-19T09:00:03.911Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.9.4"}],"ecosystem":"crates.io","package":"heapless","purl":"pkg:cargo/heapless","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/heapless","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0581.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/rust-embedded/heapless/issues/694","tags":["report"],"sources":["rustsec"]},{"url":"https://github.com/rust-embedded/heapless/issues/676","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0581","url":"https://rustsec.org/advisories/RUSTSEC-2026-0581.html","licence":"CC0-1.0","modified":"2026-11-19T09:00:03.911Z"}],"updatedAt":"2026-11-25T22:56:43.520Z"}