ADVISORIES

GitHub Advisory Database

GHSA-v362-2895-h9r2

Use After Free in lru

Details

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.

Affected packages

EcosystemPackageAffected versions
crates.iolru
All versions before 0.7.1 (fixed in 0.7.1)

References