Vulnerability · Published Oct 16, 2020 · Assigned by GitHub_M
CVE-2020-15254Undefined Behavior in bounded Crossbeam channel
High 8.1
In plain English
A high-severity memory corruption in crossbeam from crossbeam-rs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Crossbeam is a set of tools for concurrent programming. In crossbeam-channel before version 0.4.4, the bounded channel incorrectly assumes that `Vec::from_iter` has allocated capacity that same as the number of iterator elements. `Vec::from_iter` does not actually guarantee that and may allocate extra memory. The destructor of the `bounded` channel reconstructs `Vec` from the raw pointer based on the incorrect assumes described above. This is unsound and causing deallocation with the incorrect capacity when `Vec::from_iter` has allocated different sizes with the number of iterator elements. This has been fixed in crossbeam-channel 0.4.4.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | firefox | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine:v3.21 | firefox | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine:v3.22 | firefox | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine:v3.23 | firefox | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine:v3.21 | librewolf | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine:v3.22 | librewolf | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine:v3.23 | librewolf | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine:v3.24 | librewolf | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Ubuntu:22.04:LTS | rust-crossbeam | no fix listed | UBUNTU-CVE-2020-15254 |
| Ubuntu:24.04:LTS | rust-crossbeam | no fix listed | UBUNTU-CVE-2020-15254 |
| Ubuntu:25.10 | rust-crossbeam | no fix listed | UBUNTU-CVE-2020-15254 |
| Ubuntu:26.04:LTS | rust-crossbeam | no fix listed | UBUNTU-CVE-2020-15254 |
| Ubuntu:26.10 | rust-crossbeam | no fix listed | UBUNTU-CVE-2020-15254 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| crossbeam-rs | crossbeam | < 0.4.4 |
Weakness: CWE-119 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx x_refsource_CONFIRM
- https://github.com/crossbeam-rs/crossbeam/issues/539 x_refsource_MISC
- https://github.com/crossbeam-rs/crossbeam/pull/533 x_refsource_MISC
- https://github.com/RustSec/advisory-db/pull/425 x_refsource_MISC