{"id":"GHSA-pg9f-39pc-qf8g","revision":"7fd60ed39dc84a20be0a0bfb428603f8","records":[{"revision":"7fd60ed39dc84a20be0a0bfb428603f8","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-pg9f-39pc-qf8g","aliases":["CVE-2025-4574","RUSTSEC-2025-0024","TROVE-2025-013"],"title":"crossbeam-channel Vulnerable to Double Free on Drop","description":"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","state":0,"publishedAt":"2025-04-10T14:30:39+00:00","modifiedAt":"2026-09-10T03:50:57.4099856+00:00","affected":[{"ecosystem":"crates.io","name":"crossbeam-channel","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.5.12"},{"kind":"fixed","version":"0.5.15"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-4574","https://github.com/crossbeam-rs/crossbeam/pull/1187","https://access.redhat.com/security/cve/CVE-2025-4574","https://bugzilla.redhat.com/show_bug.cgi?id=2358890","https://github.com/crossbeam-rs/crossbeam","https://rustsec.org/advisories/RUSTSEC-2025-0024.html"],"sourceUrl":"https://github.com/advisories/GHSA-pg9f-39pc-qf8g","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pg9f-39pc-qf8g","identifiers":["GHSA-pg9f-39pc-qf8g","CVE-2025-4574","RUSTSEC-2025-0024","TROVE-2025-013"]},"retained":false,"historicalAffected":[]}],"coverage":[]}