Vulnerability Name:

CVE-2020-15254 (CCN-189972)

Assigned:2020-10-14
Published:2020-10-14
Updated:2022-08-05
Summary: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.
CVSS v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.3 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
6.4 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:7.5 High (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
7.5 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-401
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2020-15254

Source: XF
Type: UNKNOWN
crossbeam-cve202015254-weak-security(189972)

Source: MISC
Type: Exploit, Third Party Advisory
https://github.com/crossbeam-rs/crossbeam/issues/539

Source: MISC
Type: Exploit, Patch, Third Party Advisory
https://github.com/crossbeam-rs/crossbeam/pull/533

Source: CCN
Type: Crossbeam GIT Repository
Undefined Behavior in bounded channel

Source: CONFIRM
Type: Third Party Advisory
https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/RustSec/advisory-db/pull/425

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2020-15254

Vulnerable Configuration:Configuration 1:
  • cpe:/a:crossbeam_project:crossbeam:*:*:*:*:*:*:*:* (Version < 0.4.4)

  • Configuration CCN 1:
  • cpe:/a:crossbeam-channel_project:crossbeam-channel:0.4.3:*:*:*:*:rust:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:111899
    P
    MozillaFirefox-92.0-1.2 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:105476
    P
    MozillaFirefox-92.0-1.2 on GA media (Moderate)
    2021-10-01
    BACK
    crossbeam_project crossbeam *
    crossbeam-channel_project crossbeam-channel 0.4.3