All reports
Low

Tokio broadcast channel calls clone in parallel, but does not require `Sync`

Affected versions

Rust / Cargotokio
Affected versions
>= 1.44.0, < 1.44.2
Fixed version
1.44.2
Rust / Cargotokio
Affected versions
>= 1.39.0, < 1.43.1
Fixed version
1.43.1
Rust / Cargotokio
Affected versions
>= 0.2.5, < 1.38.2
Fixed version
1.38.2

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.

Links