Advisory

GHSA-wxjf-9f4g-3v44

Also known as: CVE-2020-36461, RUSTSEC-2020-0141

Summary

Data races in noise_search

Details

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).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 20:56 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

noise_search

crates.io · All systems

Affected

  • introduced 0, last affected 0.7.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences