{"id":"RUSTSEC-2025-0024","revision":"c71a7e3b92ef4b49ba422cf747a98549","records":[{"revision":"c71a7e3b92ef4b49ba422cf747a98549","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2025-0024","aliases":["CVE-2025-4574","GHSA-pg9f-39pc-qf8g","TROVE-2025-013"],"title":"crossbeam-channel: 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-08T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:00.070713+00:00","affected":[{"ecosystem":"crates.io","name":"crossbeam-channel","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.5.12-0"},{"kind":"fixed","version":"0.5.15"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/crossbeam-channel","https://rustsec.org/advisories/RUSTSEC-2025-0024.html","https://github.com/crossbeam-rs/crossbeam/pull/1187"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2025-0024","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2025-0024","identifiers":["RUSTSEC-2025-0024","CVE-2025-4574","GHSA-pg9f-39pc-qf8g","TROVE-2025-013"]},"retained":false,"historicalAffected":[]}],"coverage":[]}