Lucene search

K
rustsecRustsecRUSTSEC-2020-0087
HistoryNov 17, 2020 - 12:00 p.m.

TryMutex<T> allows sending non-Send type across threads

2020-11-1712:00:00
rustsec.org
8

0.001 Low

EPSS

Percentile

25.6%

Affected versions of this crate unconditionally implemented Sync trait for TryMutex&lt;T&gt; type.

This allows users to put non-Send T type in TryMutex and send it to another thread, which can cause a data race.

The flaw was corrected in the 0.3.0 release by adding T: Send bound for the Sync trait implementation.

CPENameOperatorVersion
try-mutexlt0.3.0

0.001 Low

EPSS

Percentile

25.6%

Related for RUSTSEC-2020-0087