Advisory

GHSA-96w3-p368-4h8c

Also known as: CVE-2020-35874, RUSTSEC-2020-0017

Summary

Use after free in internment

Details

ArcIntern::drop has a race condition where it can release memory which is about to get another user. The new user will get a reference to freed memory.

This was fixed by serializing access to an interned object while it is being deallocated.

Versions prior to 0.3.12 used stronger locking which avoided the problem.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:46 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

internment

crates.io · All systems

Affected

  • introduced 0.3.12, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p internment --precise 0.4.0

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