原始 OSV JSON{
"id": "GHSA-v5m7-53cv-f3hx",
"aliases": [
"CVE-2020-15254"
],
"details": "### Impact\n\nThe affected version of this crate's 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.\n\n### Patches\n\nThis has been fixed in crossbeam-channel 0.4.4.\n\nWe recommend users to upgrade to 0.4.4.\n\n### References\n\nSee https://github.com/crossbeam-rs/crossbeam/pull/533, https://github.com/crossbeam-rs/crossbeam/issues/539, and https://github.com/RustSec/advisory-db/pull/425 for more details.\n\n### License\n\nThis advisory is in the public domain.",
"summary": "crossbeam-channel Undefined Behavior before v0.4.4",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.3"
},
{
"fixed": "0.4.4"
}
]
}
],
"package": {
"name": "crossbeam-channel",
"ecosystem": "crates.io"
},
"versions": [
"0.4.3"
]
}
],
"modified": "2022-08-10T23:46:00Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"published": "2021-08-25T21:01:13Z",
"references": [
{
"url": "https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15254",
"type": "ADVISORY"
},
{
"url": "https://github.com/crossbeam-rs/crossbeam/issues/539",
"type": "WEB"
},
{
"url": "https://github.com/RustSec/advisory-db/pull/425",
"type": "WEB"
},
{
"url": "https://github.com/crossbeam-rs/crossbeam/pull/533",
"type": "WEB"
},
{
"url": "https://github.com/crossbeam-rs/crossbeam",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0052.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-119",
"CWE-401"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2020-10-16T17:15:00Z",
"github_reviewed_at": "2021-08-03T22:53:34Z"
}
}