Security mailing lists by PureSourceCode

CVE-2020-15254

CRITICAL 9.8CVSS 3.1

Incorrect 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD crossbeam_project crossbeam
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.