Lucene search

K
rustsecRustsecRUSTSEC-2020-0120
HistoryNov 10, 2020 - 12:00 p.m.

`Decoder<R>` can carry `R: !Send` to other threads

2020-11-1012:00:00
rustsec.org
11
decoder
r: read
memory corruption
data race
mutexguard

EPSS

0.002

Percentile

61.8%

Affected versions of this crate implements Send for Decoder&lt;R&gt; for any R: Read. This allows Decoder&lt;R&gt; to contain R: !Send and carry (move) it to another thread.

This can result in undefined behavior such as memory corruption from data race on R, or dropping R = MutexGuard&lt;_&gt; from a thread that didn’t lock the mutex.

The flaw was corrected in commit a34d6e1 by adding trait bound R: Send to the Send impl for Decoder&lt;R&gt;.

EPSS

0.002

Percentile

61.8%

Related for RUSTSEC-2020-0120