{"id":"CVE-2025-4574","aliases":["GHSA-pg9f-39pc-qf8g","RUSTSEC-2025-0024","TROVE-2025-013"],"url":"https://o3.security/vulnerability/CVE-2025-4574","summary":"Crossbeam-channel: crossbeam-channel vulnerable to double free on drop","details":"The internal `Channel` type's `Drop` method has a race\nwhich could, in some circumstances, lead to a double-free.\nThis could result in memory corruption.\n\nQuoting from the\n[upstream description in merge request \\#1187](https://github.com/crossbeam-rs/crossbeam/pull/1187#issue-2980761131):\n\n> The problem lies in the fact that `dicard_all_messages` contained two paths that could lead to `head.block` being read but only one of them would swap the value. This meant that `dicard_all_messages` could end up observing a non-null block pointer (and therefore attempting to free it) without setting `head.block` to null. This would then lead to `Channel::drop` making a second attempt at dropping the same pointer.\n\nThe bug was introduced while fixing a memory leak, in\nupstream [MR \\#1084](https://github.com/crossbeam-rs/crossbeam/pull/1084),\nfirst published in 0.5.12.\n\nThe fix is in\nupstream [MR \\#1187](https://github.com/crossbeam-rs/crossbeam/pull/1187)\nand has been published in 0.5.15","published":"2025-05-13T21:47:24.951Z","modified":"2026-11-05T21:15:31.494104309Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"},"epss":{"score":0.0054,"percentile":0.44188,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"crossbeam-channel","fixedVersion":"0.5.15"}],"fix":{"url":"https://github.com/crossbeam-rs/crossbeam/pull/1187","label":"crossbeam-rs/crossbeam#1187"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2025-4574"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4574.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pg9f-39pc-qf8g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4574"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2358890"},{"type":"FIX","url":"https://github.com/crossbeam-rs/crossbeam/pull/1187"},{"type":"PACKAGE","url":"https://github.com/crossbeam-rs/crossbeam"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2025-0024.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-05T21:15:31.494104309Z"}}