CVE-2021-45720: Use After Free in lru
(updated )
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
Detect and mitigate CVE-2021-45720 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →