Skip to content
OpenAdvisories
High · 8.1 CVE-2020-15254 CVE-2020-35904EUVD-2021-1883GHSA-m8h8-v6jh-c762GHSA-v5m7-53cv-f3hxRUSTSEC-2020-0052

Undefined Behavior in bounded Crossbeam channel

Published Oct 16, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
crossbeam-rs crossbeam < 0.4.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-crossbeam No fix yet —
Ubuntu 26.04 LTS rust-crossbeam No fix yet —
Ubuntu 25.10 rust-crossbeam No fix yet —
Ubuntu 24.04 LTS rust-crossbeam No fix yet —
Ubuntu 22.04 LTS rust-crossbeam No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS firefox 82.0+build2-0ubuntu0.20.04.1 USN-4599-1
Ubuntu 20.04 LTS mozjs52 +2 No fix yet —
Ubuntu 18.04 LTS firefox 82.0+build2-0ubuntu0.18.04.1 USN-4599-1
Ubuntu 18.04 LTS mozjs38 +1 No fix yet —
Ubuntu 16.04 LTS firefox 82.0+build2-0ubuntu0.16.04.5 USN-4599-2
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed MozillaFirefox 92.0-1.2 openSUSE-SU-2024:10600-1
openSUSE Tumbleweed firefox-esr 128.5.1-1.1 openSUSE-SU-2024:14572-1
ReleasePackageFixed inAdvisory
Alpine v3.24 librewolf 82.0-r0 —
Alpine v3.23 firefox +1 82.0-r0 —
Alpine v3.22 firefox +1 82.0-r0 —
Alpine v3.21 firefox +1 82.0-r0 —
Alpine v3.20 firefox 82.0-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 firefox 82.0-r0 —
Alpine v3.18 firefox 82.0-r0 —
Alpine v3.17 firefox 82.0-r0 —
Alpine v3.16 firefox 82.0-r0 —
Alpine v3.15 firefox 82.0-r0 —
Alpine v3.14 firefox 82.0-r0 —
Alpine v3.13 firefox 82.0-r0 —
Alpine v3.12 firefox 82.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io crossbeam-channel >= 0.4.3, < 0.4.4 0.4.4 GHSA-m8h8-v6jh-c762

Advisories 4

References