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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| signal-simple (crates.io) | up to 0.1.1, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| signal-simple_project signal-simple | up to 2020-11-15 | NVD |
All scores
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV: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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36446 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-36cg-4jff-5863 changed 2023-11-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-8892-84wf-cg8f changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0126 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36446 changed 2026-06-17 | Public domain |