Lucene search

K
osvGoogleOSV:GHSA-3HXH-7JXM-59X4
HistoryJun 17, 2022 - 12:13 a.m.

AtomicBucket<T> unconditionally implements Send/Sync

2022-06-1700:13:03
Google
osv.dev
7

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:GHSA-3HXH-7JXM-59X4