GitHub Advisoryadvisory · crates.io

GHSA-qqmc-hwqp-8g2w Use after free in lru crate

HIGH Published 2022-06-17 Modified 2022-06-17 Official page ↗
Ecosystem
crates.io
Packages
lru
Severity
High
Reviewed
2022-06-17

Affected packages

• crates.io lru: < 0.7.1 → fixed in 0.7.1

Description

Lru crate has use after free vulnerability. Lru crate has two functions for getting an iterator. Both iterators give references to key and value. Calling specific functions, like pop(), will remove and free the value, and but it's still possible to access the reference of value which is already dropped causing use after free.

References