CVE-2020-36446
JSON

8.1high

Data races in signal-simple

Severity
8.1high CVSS:3.1 by NVD
Exploit likelihood
0.77% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-36cg-4jff-5863GHSA-8892-84wf-cg8fRUSTSEC-2020-0126

Description

An issue was discovered in the signal-simple crate through 2020-11-15 for Rust. There are unconditional implementations of Send and Sync for SyncChannel<T>.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
signal-simple (crates.io)up to 0.1.1, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
signal-simple_project signal-simpleup to 2020-11-15NVD

All scores

GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

An issue was discovered in the signal-simple crate through 2020-11-15 for Rust. There are unconditional implementations of Send and Sync for SyncChannel<T>.

GitHub Advisory Database

Affected versions of this crate unconditionally implement Send/Sync for SyncChannel<T>. SyncChannel<T> 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<Cell<_> allows to create data races (which can lead to memory corruption), and using T = MutexGuard<T> allows to unlock a mutex from a thread that didn't lock the mutex.

GitHub Advisory Database

Affected versions of this crate unconditionally implement Send/Sync for SyncChannel<T>. SyncChannel<T> 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<Cell<_> allows to create data races (which can lead to memory corruption), and using T = MutexGuard<T> allows to unlock a mutex from a thread that didn't lock the mutex.

NVD (es)

Se ha detectado un problema en la crate signal-simple hasta el 15-11-2020 para Rust. Se presentan implementaciones incondicionales de Send y Sync para la función SyncChannel(T)

References

Sources

SourceRecordLicence
CVE ListCVE-2020-36446 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-36cg-4jff-5863 changed 2023-11-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-8892-84wf-cg8f changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0126 changed 2023-11-08CC0-1.0
NVDCVE-2020-36446 changed 2026-06-17Public domain