Skip to content
OpenAdvisories
Low GHSA-rhfx-m35p-ff5j RUSTSEC-2026-0002

`IterMut` violates Stacked Borrows by invalidating internal pointer

Published Jan 7, 2026 · Updated Sep 10, 2026 · Assigned by GHSA

Description

Affected versions of this crate contain a soundness issue in the `IterMut` iterator implementation. The `IterMut::next` and `IterMut::next_back` methods 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.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io lru >= 0.9.0, < 0.16.3 0.16.3 GHSA-rhfx-m35p-ff5j

References