Lucene search

K
osvGoogleOSV:RUSTSEC-2020-0127
HistoryDec 18, 2020 - 12:00 p.m.

SyncRef's clone() and debug() allow data races

2020-12-1812:00:00
Google
osv.dev
11
syncref
clone
debug
data races
undefined behavior
version
crate
sync
syncref<t>

EPSS

0.005

Percentile

76.7%

Affected versions of this crate unconditionally implement Sync for SyncRef&lt;T&gt;.
This definition allows data races if &T is accessible through &SyncRef.

SyncRef&lt;T&gt; derives Clone and Debug, and the default implementations of those traits access &T by invoking T::clone() & T::fmt(). It is possible to create data races & undefined behavior by concurrently invoking SyncRef&lt;T&gt;::clone() or SyncRef&lt;T&gt;::fmt() from multiple threads with T: !Sync.

EPSS

0.005

Percentile

76.7%

Related for OSV:RUSTSEC-2020-0127