{"id":"RUSTSEC-2026-0581","aliases":[],"title":"`Deque::make_contiguous` could lead to broken invariants","titleSource":"OSV","descriptionSource":"OSV","description":"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).","severity":"unknown","score":null,"published":"2026-11-18T12:00:00.000Z","modified":"2026-11-19T09:00:03.911Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"heapless","sources":[{"name":"OSV · RUSTSEC-2026-0581","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0581"}],"ranges":[{"events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.4"}],"type":"SEMVER"}],"versions":[],"fixed":["0.9.4"]}],"sourceAffected":[],"references":["https://crates.io/crates/heapless","https://rustsec.org/advisories/RUSTSEC-2026-0581.html","https://github.com/rust-embedded/heapless/issues/694","https://github.com/rust-embedded/heapless/issues/676"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0581","modified":"2026-11-19T09:00:03.911566789Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0581"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-19T09:21:40.801Z","kev":{"status":"unavailable","checkedAt":"2026-11-29T01:20:30.653Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}