Advisory

GHSA-v362-2895-h9r2

Also known as: CVE-2021-45720, GHSA-qqmc-hwqp-8g2w, RUSTSEC-2021-0130

Summary

Use After Free in lru

Details

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

High Basis: The source's own band: HIGH

Dates

Published
2022-01-07 22:37 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

lru

crates.io · All systems

Affected

  • introduced 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences