NetSight
high7.5

CVE-2021-45720

Use After Free in lru

Impact

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

EcosystemPackageAffectedFixed in
rustlru< 0.7.10.7.1

Affected products

VendorProductAffected versions
Lru ProjectLru
before 0.7.1

Weakness classification

References