# RUSTSEC-2026-0582: On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-18T12:00:00.000Z
- Modified: 2026-11-19T09:00:04.317Z

## Description

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.

Reported by [8rsrf7](https://github.com/8rsrf7).

(As written by RustSec Advisory Database.)

## Affected

- heapless (crates.io): from 0.0.0-0 before 0.9.4

## References

- <https://crates.io/crates/heapless> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0582.html> (advisory)
- <https://github.com/rust-embedded/heapless/issues/672> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0582](https://rustsec.org/advisories/RUSTSEC-2026-0582.html), CC0-1.0, modified 2026-11-19

---

Page: https://cve.day/RUSTSEC-2026-0582 · Whole record: https://cve.day/RUSTSEC-2026-0582.json · Rebuilt by cve.day 2026-11-25T22:56:43.520Z
