GHSA-rr8g-9fpq-6wmg Tokio broadcast channel calls clone in parallel, but does not require `Sync`
LowCVSS 2.7
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io tokio(crates.io) | >= 0.2.5, < 1.38.2; >= 1.39.0, < 1.42.1; >= 1.39.0, < 1.43.1; >= 1.43.0, < 1.43.1 +1 more | 1.38.2, 1.42.1, 1.43.1, 1.44.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io tokio(crates.io) | >= 1.44.0, < 1.44.2 | 1.44.2 |
| crates.io tokio(crates.io) | >= 0.2.5, < 1.38.2 | 1.38.2 |
| crates.io tokio(crates.io) | >= 1.39.0, < 1.43.1 | 1.43.1 |
| crates.io tokio(crates.io) | >= 1.39.0, < 1.42.1 | 1.42.1 |
| crates.io tokio(crates.io) | >= 1.43.0, < 1.43.1 | 1.43.1 |
References
- github.com patch
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com