GHSA-rhfx-m35p-ff5j `IterMut` violates Stacked Borrows by invalidating internal pointer
LowCVSS 2.7
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io lru(crates.io) | >= 0.9.0, < 0.16.3 | 0.16.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io lru(crates.io) | >= 0.9.0, < 0.16.3 | 0.16.3 |
References
- github.com patch
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com