PT-2018-15489 · Rust · Crossbeam

C0Gent

·

Published

2018-12-09

·

Updated

2021-08-25

·

CVE-2018-20996

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions crossbeam versions prior to 0.4.1
Description The issue arises from destructor mishandling, leading to a double free when an element is popped from a queue. This occurs because crossbeam runs the destructor inside the epoch-based garbage collector, even after the element has been removed. The problem was resolved by wrapping elements inside queues in a ManuallyDrop.
Recommendations For versions prior to 0.4.1, update to version 0.4.1 or later to resolve the issue. As a temporary workaround, consider avoiding the use of queues in a way that could trigger the double free, until the update can be applied.

Exploit

Fix

Double Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2018-20996
GHSA-C3CW-C387-PJ65
RUSTSEC-2018-0009

Affected Products

Crossbeam