RUSTSEC-2026-0002: IterMut violates Stacked Borrows by invalidating internal pointer #100
Closed as not planned
IterMut violates Stacked Borrows by invalidating internal pointer #100
lru0.12.5Affected versions of this crate contain a soundness issue in the
IterMutiterator implementation. The
IterMut::nextandIterMut::next_backmethods temporarily create an exclusive reference to the key when
dereferencing the internal node pointer.
This invalidates the shared pointer held by the internal
HashMap,violating Stacked Borrows rules.
See advisory page for additional details.