crossbeam-channel Vulnerable to Double Free on Drop
Moderate severity
GitHub Reviewed
Published
Apr 10, 2025
to the GitHub Advisory Database
•
Updated Apr 10, 2025
Description
Published to the GitHub Advisory Database
Apr 10, 2025
Reviewed
Apr 10, 2025
Last updated
Apr 10, 2025
The internal
Channel
type'sDrop
method has a racewhich could, in some circumstances, lead to a double-free.
This could result in memory corruption.
Quoting from the
upstream description in merge request #1187:
The bug was introduced while fixing a memory leak, in
upstream MR #1084,
first published in 0.5.12.
The fix is in
upstream MR #1187
and has been published in 0.5.15
References