CVE-2020-15254
Crossbeam Project Crossbeam vulnerability
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
Crossbeam. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Crossbeam Project Crossbeam runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/RustSec/advisory-db/pull/425 · Patch
- github.com/crossbeam-rs/crossbeam/pull/533 · Exploit
- github.com/crossbeam-rs/crossbeam/issues/539 · Exploit
- github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-15254
- cve.org/CVERecord?id=CVE-2020-15254
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.