RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0577

Panicking Drop implementation could lead to UB

Reported
Issued
Package
heapless (crates.io)
Type
INFO Unsound
Categories
Keywords
#panic-safety
References
Patched
  • >=0.9.4
Affected Functions
Version
heapless::deque::Deque::clear
  • <0.9.3
heapless::history_buf::HistoryBuf::clear
  • <0.9.3
heapless::history_buf::HistoryBuf::write
  • <0.9.4
heapless::index_map::IndexMap::clear
  • <0.9.3
heapless::index_map::IndexMap::retain
  • <0.9.4
heapless::index_map::IndexMap::truncate
  • <0.9.4
heapless::vec::IntoIter::drop
  • <0.9.4

Description

Multiple functions dropped generic parameters but didn't properly handle the unwinding case, leading to broken invariants.

Reported by tooson9010-spec and Evian-Zhang.

Advisory available under CC0-1.0 license.