8.1high
Data races in noise_search
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 1.24% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-wxjf-9f4g-3v44RUSTSEC-2020-0141
Description
An issue was discovered in the noise_search crate through 2020-12-10 for Rust. There are unconditional implementations of Send and Sync for MvccRwLock.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| noise_search (crates.io) | up to 0.7.0, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| noise_search_project noise_search | up to 2020-12-10 | NVD |
All scores
| GitHub | 8.1medium 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 noise_search crate through 2020-12-10 for Rust. There are unconditional implementations of Send and Sync for MvccRwLock.
GitHub Advisory Database
Affected versions of the noise_search crate unconditionally implement Send/Sync for MvccRwLock.
This can lead to data races when types that are either !Send or !Sync (e.g. Rc<T>, Arc<Cell<_>>) are contained inside MvccRwLock and sent across thread boundaries. The data races can potentially lead to memory corruption (as demonstrated in the PoC from the original report issue).
Also, safe APIs of MvccRwLock allow aliasing violations by allowing &T and LockResult<MutexGuard<Box<T>>> to co-exist in conflicting lifetime regions. The APIs of MvccRwLock should either be marked as unsafe or MbccRwLock should be changed to private or pub(crate).
RustSec Advisory Database
Affected versions of this crate unconditionally implement Send/Sync for MvccRwLock.
This can lead to data races when types that are either !Send or !Sync (e.g. Rc<T>, Arc<Cell<_>>) are contained inside MvccRwLock and sent across thread boundaries. The data races can potentially lead to memory corruption (as demonstrated in the PoC from the original report issue).
Also, safe APIs of MvccRwLock allow aliasing violations by allowing &T and LockResult<MutexGuard<Box<T>>> to co-exist in conflicting lifetime regions. The APIs of MvccRwLock should either be marked as unsafe or MbccRwLock should be changed to private or pub(crate).
NVD (es)
Se ha detectado un problema en la crate noise_search hasta el 10-12-2020 para Rust. Se presentan implementaciones incondicionales de Send y Sync para MvccRwLock
References
| https://rustsec.org/advisories/RUSTSEC-2020-0141.html | advisory, exploit, issue-tracking, patch, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/noise_search/RUSTSEC-2020-0141.md | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36461 | advisory | |
| https://github.com/pipedown/noise/issues/72 | report, web | |
| https://github.com/pipedown/noise | package | |
| https://crates.io/crates/noise_search | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36461 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wxjf-9f4g-3v44 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0141 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36461 changed 2026-06-17 | Public domain |