Lucene search

K
osvGoogleOSV:GHSA-8892-84WF-CG8F
HistoryAug 25, 2021 - 9:00 p.m.

SyncChannel<T> can move 'T: !Send' to other threads

2021-08-2521:00:16
Google
osv.dev
3

0.002 Low

EPSS

Percentile

61.8%

Affected versions of this crate unconditionally implement Send/Sync for SyncChannel&lt;T&gt;. SyncChannel&lt;T&gt; doesn’t provide access to &T but merely serves as a channel that consumes and returns owned T. Users can create UB in safe Rust by sending T: !Send to other threads with SyncChannel::send/recv APIs. Using T = Arc&lt;Cell&lt;_&gt; allows to create data races (which can lead to memory corruption), and using T = MutexGuard&lt;T&gt; allows to unlock a mutex from a thread that didn’t lock the mutex.

CPENameOperatorVersion
signal-simplele0.1.1

0.002 Low

EPSS

Percentile

61.8%

Related for OSV:GHSA-8892-84WF-CG8F