Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. crossbeam
  4. ›
  5. CVE-2018-20996

CVE-2018-20996: Double free in crossbeam

August 25, 2021 (updated June 13, 2023)

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.

References

  • github.com/advisories/GHSA-c3cw-c387-pj65
  • github.com/crossbeam-rs/crossbeam-epoch
  • github.com/crossbeam-rs/crossbeam-epoch/issues/82
  • nvd.nist.gov/vuln/detail/CVE-2018-20996
  • rustsec.org/advisories/RUSTSEC-2018-0009.html

Code Behaviors & Features

Detect and mitigate CVE-2018-20996 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.4.0 before 0.4.1

Fixed versions

  • 0.4.1

Solution

Upgrade to version 0.4.1 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-415: Double Free

Source file

cargo/crossbeam/CVE-2018-20996.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:26 +0000.