Advisory

RUSTSEC-2025-0023

Also known as: GHSA-rr8g-9fpq-6wmg

Summary

Broadcast channel calls clone in parallel, but does not require Sync

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-04-07 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

tokio

crates.io · All systems

Affected

  • introduced 0.2.5, fixed 1.38.2, introduced 1.39.0, fixed 1.42.1, introduced 1.43.0, fixed 1.43.1, introduced 1.44.0, fixed 1.44.2 (semver)

Fixed versions

1.38.2, 1.42.1, 1.43.1, 1.44.2

Fix

  • Fixed version 1.38.2
    cargo update -p tokio --precise 1.38.2
  • Fixed version 1.42.1
    cargo update -p tokio --precise 1.42.1
  • Fixed version 1.43.1
    cargo update -p tokio --precise 1.43.1
  • Fixed version 1.44.2
    cargo update -p tokio --precise 1.44.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences