ADVISORIES

RustSec Advisory Database

RUSTSEC-2018-0009

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.

Affected packages

EcosystemPackageAffected versions
crates.iocrossbeam
From 0.4.0 before 0.4.1 (fixed in 0.4.1)

References