Advisory

RUSTSEC-2018-0009

Also known as: CVE-2018-20996, GHSA-c3cw-c387-pj65

Summary

MsQueue and SegQueue suffer from double-free

Details

Even if an element is popped from a queue, crossbeam would run its
destructor inside the epoch-based garbage collector. This is a source
of double frees.

The flaw was corrected by wrapping elements inside queues in a
ManuallyDrop.

Thanks to @c0gent for reporting the issue.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2018-12-09 12:00 UTC
Modified
2026-07-17 16:00 UTC

Affected packages and fixes

crossbeam

crates.io · All systems

Affected

  • introduced 0.4.0, fixed 0.4.1 (semver)

Fixed versions

0.4.1

Fix

  • Fixed version 0.4.1
    cargo update -p crossbeam --precise 0.4.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