Files
advisory-db/crates/rcu_cell/RUSTSEC-2020-0131.md
2021-01-30 23:02:50 -05:00

646 B

[advisory]
id = "RUSTSEC-2020-0131"
package = "rcu_cell"
date = "2020-11-14"
url = "https://github.com/Xudong-Huang/rcu_cell/issues/3"
categories = ["memory-corruption", "thread-safety"]

[versions]
patched = []

Send/Sync bound needed on T for Send/Sync impl of RcuCell

Affected versions of this crate unconditionally implement Send/Sync for RcuCell<T>. This allows users to send T: !Send to other threads (while T enclosed within RcuCell<T>), and allows users to concurrently access T: !Sync by using the APIs of RcuCell<T> that provide access to &T.

This can result in memory corruption caused by data races.