Advisory

RUSTSEC-2021-0130

Also known as: CVE-2021-45720, GHSA-qqmc-hwqp-8g2w, GHSA-v362-2895-h9r2

Summary

Use after free in lru crate

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-12-21 12:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

lru

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.7.1 (semver)

Fixed versions

0.7.1

Fix

  • Fixed version 0.7.1
    cargo update -p lru --precise 0.7.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences