Use After Free in lru
High severity
GitHub Reviewed
Published
Jan 7, 2022
to the GitHub Advisory Database
•
Updated Jun 13, 2023
Description
Published by the National Vulnerability Database
Dec 26, 2021
Reviewed
Jan 7, 2022
Published to the GitHub Advisory Database
Jan 7, 2022
Last updated
Jun 13, 2023
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