xudong-huang/rcu_cell · Security
Data races in rcu_cell
- GHSA ID
- GHSA-686h-j8r8-wmfm
- CVE ID
- CVE-2020-36451
- Severity
- high
- Published
- Updated
- CVSS
- 8.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
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.
CWEs
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-36451 ↗
- https://github.com/Xudong-Huang/rcu_cell/issues/3 ↗
- https://github.com/Xudong-Huang/rcu_cell/pull/4 ↗
- https://rustsec.org/advisories/RUSTSEC-2020-0131.html ↗
- https://github.com/Xudong-Huang/rcu_cell/pull/4/commits/1faf18eee11f14969b77ae0f76dcd9ebd437d0c2 ↗
- https://github.com/advisories/GHSA-686h-j8r8-wmfm ↗