GitHub Advisoryadvisory · crates.io
GHSA-c3cw-c387-pj65 Double free in crossbeam
CRITICAL
Official page ↗
- Aliases
- CVE-2018-20996
- Ecosystem
- crates.io
- Packages
- crossbeam
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-415
- Reviewed
- 2021-08-19
Affected packages
• crates.io crossbeam: >= 0.4.0, < 0.4.1 → fixed in 0.4.1
Description
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.
Related
Alias · CVE (1)
- CVE-2018-20996 An issue was discovered in the crossbeam crate before 0.4.1 for Rust. vulnerability
Weakness · CWE (1)
- CWE-415 Double Free weakness