tokio-rs/tokio · Security
Tokio broadcast channel calls clone in parallel, but does not require `Sync`
- GHSA ID
- GHSA-rr8g-9fpq-6wmg
- Severity
- low
- Published
- Updated
- CVSS v4
- 2.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U
Description
The broadcast channel internally calls clone on the stored value when receiving it, and only requires T:Send. This means that using the broadcast channel with values that are Send but not Sync can trigger unsoundness if the clone implementation makes use of the value being !Sync.
Thank you to Austin Bonander for finding and reporting this issue.
CWEs
- CWE-664 · Improper Control of a Resource Through its Lifetime