Lucene search

K
osvGoogleOSV:RUSTSEC-2021-0113
HistoryApr 07, 2021 - 12:00 p.m.

AtomicBucket<T> unconditionally implements Send/Sync

2021-04-0712:00:00
Google
osv.dev
5

0.002 Low

EPSS

Percentile

59.7%

In the affected versions of the crate, AtomicBucket&lt;T&gt; unconditionally implements Send/Sync traits. Therefore, users can create a data race to the inner
T: !Sync by using the AtomicBucket::data_with() API.
Such data races can potentially cause memory corruption or other undefined behavior.

The flaw was fixed in commit 8e6daab by adding appropriate Send/Sync bounds to the Send/Sync impl of struct Block&lt;T&gt; (which is a data type contained inside AtomicBucket&lt;T&gt;).

CPENameOperatorVersion
metrics-utillt0.7.0

0.002 Low

EPSS

Percentile

59.7%

Related for OSV:RUSTSEC-2021-0113