CVE-2020-15254
CRITICAL 9.8CVSS 3.1Incorrect buffer size in crossbeam-channel
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.
- Published
- 16 Oct 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-119CWE-131CWE-401
- Also known as
- CVE-2020-35904GHSA-m8h8-v6jh-c762GHSA-v5m7-53cv-f3hxRUSTSEC-2020-0052
- Sources
- NVDJSONOSV GHSA-m8h8-v6jh-c762JSONOSV GHSA-v5m7-53cv-f3hxJSONOSV RUSTSEC-2020-0052JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | crossbeam_project | crossbeamcpe:2.3:a:crossbeam_project:crossbeam:*:*:*:*:*:*:*:* |
< 0.4.4 | 0.4.4 |
| OSV | crates.io | crossbeam-channel | >= 0.4.3, < 0.4.4 | 0.4.4 |
References
- https://github.com/RustSec/advisory-db/pull/425 · Patch, Third Party Advisory, WEB
- https://github.com/crossbeam-rs/crossbeam/issues/539 · Exploit, Third Party Advisory, WEB
- https://github.com/crossbeam-rs/crossbeam/pull/533 · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-35904 · ADVISORY
- https://github.com/crossbeam-rs/crossbeam · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2020-0052.html · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-15254 · ADVISORY
- https://crates.io/crates/crossbeam-channel · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 16 Oct 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Jun 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)