{"id":"RUSTSEC-2026-0582","summary":"On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant","details":"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).","modified":"2026-11-19T09:00:04.317864790Z","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-0582.html"},{"type":"REPORT","url":"https://github.com/rust-embedded/heapless/issues/672"}],"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":{"functions":["heapless::index_map::IndexMap::insert"],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"categories":["memory-corruption"],"cvss":null,"informational":"unsound","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0582.json"}}],"schema_version":"1.9.2"}