{"id":"CVE-2020-36461","aliases":["RUSTSEC-2020-0141"],"url":"https://o3.security/vulnerability/CVE-2020-36461","summary":"Data races in noise_search","details":"Affected versions of the `noise_search` crate unconditionally implement Send/Sync for `MvccRwLock`.\nThis 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).\n\nAlso, 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).\n","published":"2021-08-25T20:56:05Z","modified":"2023-11-08T04:03:46.256345Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"crates.io","name":"noise_search","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36461"},{"type":"WEB","url":"https://github.com/pipedown/noise/issues/72"},{"type":"PACKAGE","url":"https://github.com/pipedown/noise"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0141.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:03:46.256345Z"}}