{"id":"RUSTSEC-2026-0582","aliases":["RUSTSEC-2026-0582"],"related":[],"kind":"vulnerability","state":"published","title":"On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant","summary":"Note that this required filling up the map and having the last item inserted to hash to `u16::MAX`. It is therefore very unlikely to be reachable in a real-world scenario.\n\nReported by [8rsrf7](https://github.com/8rsrf7).","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"Note that this required filling up the map and having the last item inserted to hash to `u16::MAX`. It is therefore very unlikely to be reachable in a real-world scenario.\n\nReported by [8rsrf7](https://github.com/8rsrf7).","format":"markdown","source":"rustsec"}],"published":"2026-11-18T12:00:00.000Z","modified":"2026-11-19T09:00:04.317Z","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-0582.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/rust-embedded/heapless/issues/672","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0582","url":"https://rustsec.org/advisories/RUSTSEC-2026-0582.html","licence":"CC0-1.0","modified":"2026-11-19T09:00:04.317Z"}],"updatedAt":"2026-11-25T22:56:43.520Z"}