{"id":"RUSTSEC-2026-0577","summary":"Panicking `Drop` implementation could lead to UB","details":"Multiple functions dropped generic parameters but didn't properly handle the unwinding case, leading to broken invariants.\n\nReported by [tooson9010-spec](https://github.com/tooson9010-spec) and [Evian-Zhang](https://github.com/Evian-Zhang).","modified":"2026-11-19T09:00:04.328496490Z","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-0577.html"},{"type":"REPORT","url":"https://github.com/rust-embedded/heapless/issues/659"},{"type":"REPORT","url":"https://github.com/rust-embedded/heapless/issues/688"}],"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":{"affected_functions":null,"affects":{"os":[],"functions":["heapless::deque::Deque::clear","heapless::history_buf::HistoryBuf::clear","heapless::history_buf::HistoryBuf::write","heapless::index_map::IndexMap::clear","heapless::index_map::IndexMap::retain","heapless::index_map::IndexMap::truncate","heapless::vec::IntoIter::drop"],"arch":[]}},"database_specific":{"cvss":null,"informational":"unsound","categories":["memory-corruption"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0577.json"}}],"schema_version":"1.9.2"}