Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-15254, CVE-2020-35904
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:53 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-15254
Complete source record
{
"id": "5ca29a4149e8c67b12beb2aeb896586c4073c3265ab64c826765886819509a03",
"url": "https://osv.dev/vulnerability/CVE-2020-15254",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-15254",
"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.",
"evidence": "osv:CVE-2020-15254",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2020-15254",
"aliases": [
"CVE-2020-15254",
"CVE-2020-35904",
"GHSA-m8h8-v6jh-c762",
"GHSA-v5m7-53cv-f3hx",
"RUSTSEC-2020-0052"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/crossbeam-rs/crossbeam",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "48b13dc43cf19e0544d03d16f4b3da3d8b23f076"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:crossbeam_project:crossbeam:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"crossbeam-queue-0.2.3",
"crossbeam-utils-0.7.2",
"crossbeam-epoch-0.8.2",
"crossbeam-channel-0.4.2",
"crossbeam-queue-0.2.1",
"crossbeam-utils-0.7.0",
"crossbeam-queue-0.2.0",
"crossbeam-epoch-0.8.0",
"crossbeam-deque-0.7.2",
"crossbeam-channel-0.4.0",
"crossbeam-0.7.3",
"crossbeam-0.7.2",
"crossbeam-channel-0.3.9",
"crossbeam-epoch-0.7.2",
"crossbeam-utils-0.6.6",
"crossbeam-queue-0.1.2",
"crossbeam-deque-0.7.1",
"crossbeam-channel-0.3.8",
"crossbeam-queue-0.1.1",
"crossbeam-utils-0.6.5",
"crossbeam-0.7.1",
"crossbeam-utils-0.6.4",
"crossbeam-queue-0.1.0",
"crossbeam-epoch-0.7.1",
"crossbeam-deque-0.7.0",
"crossbeam-channel-0.3.7",
"crossbeam-0.7.0",
"crossbeam-channel-0.3.6",
"crossbeam-channel-0.3.5",
"crossbeam-epoch-0.7.0",
"crossbeam-deque-0.6.3",
"crossbeam-channel-0.3.4",
"crossbeam-0.6.0",
"crossbeam-utils-0.6.3",
"crossbeam-channel-0.3.3",
"crossbeam-utils-0.6.2",
"crossbeam-channel-0.3.2",
"crossbeam-utils-0.6.1",
"crossbeam-0.5.0",
"crossbeam-utils-0.6.0",
"crossbeam-epoch-0.6.1",
"crossbeam-deque-0.6.2",
"crossbeam-channel-0.3.1",
"v0.4.1",
"v0.4.0",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"0.2.10"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-15254.json"
}
}
],
"modified": "2026-10-20T10:51:53.768181968Z",
"provider": "osv",
"references": [
"https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx",
"https://github.com/RustSec/advisory-db/pull/425",
"https://github.com/crossbeam-rs/crossbeam/pull/533",
"https://github.com/crossbeam-rs/crossbeam/issues/539"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-15254",
"evidence": "/id"
},
{
"value": "CVE-2020-35904",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 383100,
"published_at": "2020-10-16T17:15:12.057+00:00"
}