OSV 1.4.0 · github-reviewed · 修改于 2021-08-25 01:47
发布时间
2021-08-26 05:00
GitHub 审查时间
2021-08-06 05:14
NVD 发布时间
—
源文件
advisories/github-reviewed/2021/08/GHSA-7mg7-m5c3-3hqj/GHSA-7mg7-m5c3-3hqj.json
该公告已于 2021-08-25 01:47 撤回
内容仅用于保留外部引用,请不要将其当作仍然有效的安全结论。
Affected versions of this crate unconditionally implemented Send & Sync for types PinSlab<T> & Unordered<T, S>. This allows sending non-Send types to other threads and concurrently accessing non-Sync types from multiple threads.
This can result in a data race & memory corruption when types that provide internal mutability without synchronization are contained within PinSlab<T> or Unordered<T, S> and accessed concurrently from multiple threads.
The flaw was corrected in commits 92f40b4 & 6a6c367 by adding trait bound T: Send to Send impls for PinSlab<T> & Unordered<T, S> and adding T: Sync to Sync impls for PinSlab<T> & Unordered<T, S>.