{ "schema_version": "1.4.0", "id": "GHSA-mgg8-9pvp-6qcw", "modified": "2021-08-24T18:01:27Z", "published": "2021-08-25T20:59:59Z", "withdrawn": "2021-08-24T18:01:27Z", "aliases": [], "summary": "MvccRwLock allows data races & aliasing violations", "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`, `Arc>`) 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>>` 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", "severity": [], "affected": [ { "package": { "ecosystem": "crates.io", "name": "noise_search" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "last_affected": "0.7.0" } ] } ] } ], "references": [ { "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" } ], "database_specific": { "cwe_ids": [ "CWE-362" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2021-08-09T17:16:18Z", "nvd_published_at": null } }