Skip to content
Fencer Intel
low —

GHSA-rhfx-m35p-ff5j json

`IterMut` violates Stacked Borrows by invalidating internal pointer

published 10mo ago modified 2mo ago also RUSTSEC-2026-0002

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

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.

Patch / fix

  • crates.io lru 0.16.3

Is GHSA-rhfx-m35p-ff5j in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
crates.io lru
>=0.9.0, <0.16.3
0.16.3

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.