CVE-2020-36461
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
noise_search (crates.io)up to 0.7.0, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
noise_search_project noise_searchup to 2020-12-10NVD

All scores

GitHub8.1medium 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 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

Sources

SourceRecordLicence
CVE ListCVE-2020-36461 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-wxjf-9f4g-3v44 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0141 changed 2023-11-08CC0-1.0
NVDCVE-2020-36461 changed 2026-06-17Public domain