`IterMut` violates Stacked Borrows by invalidating internal pointer
Low severity
GitHub Reviewed
Published
Jan 7, 2026
to the GitHub Advisory Database
•
Updated Jan 7, 2026
Description
Published to the GitHub Advisory Database
Jan 7, 2026
Reviewed
Jan 7, 2026
Last updated
Jan 7, 2026
Affected versions of this crate contain a soundness issue in the
IterMutiterator implementation. TheIterMut::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.References