OSV 1.4.0 · github-reviewed · 修改于 2021-08-25 02:01
发布时间
2021-08-26 04:59
GitHub 审查时间
2021-08-10 01:16
NVD 发布时间
—
源文件
advisories/github-reviewed/2021/08/GHSA-mgg8-9pvp-6qcw/GHSA-mgg8-9pvp-6qcw.json
该公告已于 2021-08-25 02:01 撤回
内容仅用于保留外部引用,请不要将其当作仍然有效的安全结论。
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).