Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add use after free advisory for lru crate #1125

Merged
merged 3 commits into from Dec 21, 2021
Merged

Conversation

oherrala
Copy link
Contributor

@oherrala oherrala commented Dec 21, 2021

Use after free in lru crate

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.

More information in upstream repository issue: jeromefroe/lru-rs#120 and the already released fix can be found from jeromefroe/lru-rs#121

@Shnatsel
Copy link
Member

Thanks a lot!

@Shnatsel Shnatsel merged commit 2fc8681 into rustsec:main Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants