CVEfocus › CVE database › CVE-2020-15254

CVE-2020-15254Undefined Behavior in bounded Crossbeam channel

CVSS 8.1 HighEPSS 2.7% (higher than 87% of CVEs)Published 2020-10-16Updated 2024-08-04Assigner: GitHub_M

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.

CWE-119

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

20Fixed
1Fix pending
3Under investigation
7Will not fix
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-crossbeamFix pendingUBUNTU-CVE-2020-15254
Ubuntu 26.04rust-crossbeamUnder investigationUBUNTU-CVE-2020-15254
Ubuntu 25.10rust-crossbeamWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine
UBUNTU-CVE-2020-15254
Ubuntu 24.04rust-crossbeamUnder investigationUBUNTU-CVE-2020-15254
Ubuntu 22.04rust-crossbeamUnder investigationUBUNTU-CVE-2020-15254
Ubuntu 20.04firefoxFixed82.0+build2-0ubuntu0.20.04.1UBUNTU-CVE-2020-15254
Ubuntu 20.04mozjs52Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine
UBUNTU-CVE-2020-15254
Ubuntu 20.04mozjs68Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine
UBUNTU-CVE-2020-15254
Ubuntu 20.04rust-crossbeamWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine
UBUNTU-CVE-2020-15254
Ubuntu 18.04firefoxFixed82.0+build2-0ubuntu0.18.04.1UBUNTU-CVE-2020-15254
Ubuntu 18.04mozjs38Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine
UBUNTU-CVE-2020-15254
Ubuntu 18.04mozjs52Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine
UBUNTU-CVE-2020-15254
Ubuntu 16.04firefoxFixed82.0+build2-0ubuntu0.16.04.5UBUNTU-CVE-2020-15254
Ubuntu 14.04firefoxWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 6firefoxNot affected
Alpine Linux 3.24librewolfFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.23firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.23librewolfFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.22firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.22librewolfFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.21firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.21librewolfFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.20firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.19firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.18firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.17firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.16firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.15firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.14firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.13firefoxFixed82.0-r0ALPINE-CVE-2020-15254
Alpine Linux 3.12firefoxFixed82.0-r0ALPINE-CVE-2020-15254
crates.io librarycrossbeam-channelFixed0.4.4RUSTSEC-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.

References

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.