Skip to content

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

Moderate severity GitHub Reviewed Published Aug 25, 2021 to the GitHub Advisory Database • Updated Jan 9, 2023
Withdrawn This advisory was withdrawn on Aug 24, 2021

Package

cargo rcu_cell (Rust)

Affected versions

< 0.1.9

Patched versions

0.1.9

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.

References

Reviewed Aug 6, 2021
Withdrawn Aug 24, 2021
Published to the GitHub Advisory Database Aug 25, 2021
Last updated Jan 9, 2023

Severity

Moderate

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-jh2g-xhqq-x4w9

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.