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.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)2.7%top 14.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20firefox82.0-r0ALPINE-CVE-2020-15254
Alpine:v3.21firefox82.0-r0ALPINE-CVE-2020-15254
Alpine:v3.22firefox82.0-r0ALPINE-CVE-2020-15254
Alpine:v3.23firefox82.0-r0ALPINE-CVE-2020-15254
Alpine:v3.21librewolf82.0-r0ALPINE-CVE-2020-15254
Alpine:v3.22librewolf82.0-r0ALPINE-CVE-2020-15254
Alpine:v3.23librewolf82.0-r0ALPINE-CVE-2020-15254
Alpine:v3.24librewolf82.0-r0ALPINE-CVE-2020-15254
Ubuntu:22.04:LTSrust-crossbeamno fix listedUBUNTU-CVE-2020-15254
Ubuntu:24.04:LTSrust-crossbeamno fix listedUBUNTU-CVE-2020-15254
Ubuntu:25.10rust-crossbeamno fix listedUBUNTU-CVE-2020-15254
Ubuntu:26.04:LTSrust-crossbeamno fix listedUBUNTU-CVE-2020-15254
Ubuntu:26.10rust-crossbeamno fix listedUBUNTU-CVE-2020-15254

Affected products (as reported)

VendorProductVersions
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