CVE-2020-15254Undefined Behavior in bounded Crossbeam channel
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.
What to do
Fixed builds are available from Alpine, Ubuntu, crates.io: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-crossbeam | Fix pending | UBUNTU-CVE-2020-15254 | |
| Ubuntu 26.04 | rust-crossbeam | Under investigation | UBUNTU-CVE-2020-15254 | |
| Ubuntu 25.10 | rust-crossbeam | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2020-15254 | |
| Ubuntu 24.04 | rust-crossbeam | Under investigation | UBUNTU-CVE-2020-15254 | |
| Ubuntu 22.04 | rust-crossbeam | Under investigation | UBUNTU-CVE-2020-15254 | |
| Ubuntu 20.04 | firefox | Fixed | 82.0+build2-0ubuntu0.20.04.1 | UBUNTU-CVE-2020-15254 |
| Ubuntu 20.04 | mozjs52 | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2020-15254 | |
| Ubuntu 20.04 | mozjs68 | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2020-15254 | |
| Ubuntu 20.04 | rust-crossbeam | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2020-15254 | |
| Ubuntu 18.04 | firefox | Fixed | 82.0+build2-0ubuntu0.18.04.1 | UBUNTU-CVE-2020-15254 |
| Ubuntu 18.04 | mozjs38 | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2020-15254 | |
| Ubuntu 18.04 | mozjs52 | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | UBUNTU-CVE-2020-15254 | |
| Ubuntu 16.04 | firefox | Fixed | 82.0+build2-0ubuntu0.16.04.5 | UBUNTU-CVE-2020-15254 |
| Ubuntu 14.04 | firefox | Will not fix mozjs contains a copy of the SpiderMonkey JavaScript engine | ||
| Red Hat Enterprise Linux 8 | firefox | Not affected | ||
| Red Hat Enterprise Linux 7 | firefox | Not affected | ||
| Red Hat Enterprise Linux 6 | firefox | Not affected | ||
| Alpine Linux 3.24 | librewolf | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.23 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.23 | librewolf | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.22 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.22 | librewolf | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.21 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.21 | librewolf | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.20 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.19 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.18 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.17 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.16 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.15 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.14 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.13 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| Alpine Linux 3.12 | firefox | Fixed | 82.0-r0 | ALPINE-CVE-2020-15254 |
| crates.io library | crossbeam-channel | Fixed | 0.4.4 | RUSTSEC-2020-0052 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- crossbeam-rs crossbeam: affected: < 0.4.4
References
- https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx
- https://github.com/crossbeam-rs/crossbeam/issues/539
- https://github.com/crossbeam-rs/crossbeam/pull/533
- https://github.com/RustSec/advisory-db/pull/425
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.