Advisory

RUSTSEC-2020-0017

Also known as: CVE-2020-35874, GHSA-96w3-p368-4h8c

Summary

Use after free in ArcIntern::drop

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: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2020-05-28 12:00 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: RustSec Advisory Database · CC0-1.0

Sources & licences