CVE-2020-15254
Undefined Behavior in bounded Crossbeam channel
Reported by github_m · Published October 16, 2020
crossbeam-channel is fixed in 0.4.4 (crates.io)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| crossbeam-channel | crates.io | 0.4.4 |
| librewolf | Alpine | 82.0-r0 |
| firefox | Alpine | 82.0-r0 |
| crossbeam | crossbeam_project | 0.4.4 |
| firefox | Ubuntu:16.04:LTS | 82.0+build2-0ubuntu0.16.04.5 |
| firefox | Ubuntu:18.04:LTS | 82.0+build2-0ubuntu0.18.04.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| crossbeam-rs | crossbeam | < 0.4.4 |
| crates.io | crossbeam-channel | 0.4.3, 0.4.3 |
| alpine | librewolf | 0 |
| alpine | firefox | 0 |
| crossbeam-rs | crossbeam | 0 |
| arch | firefox | 0 |
Timeline
- Jun 26, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 10, 2022 CVE Updated
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (4 in total, the first dated here)
- Sep 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-15254
vulnetix vdb fixes CVE-2020-15254
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-15254/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-15254 advisory
- https://github.com/advisories/GHSA-v5m7-53cv-f3hx advisory
- https://github.com/crossbeam-rs/crossbeam url
- https://rustsec.org/advisories/RUSTSEC-2020-0052.html url