~ / search / GHSA-9j8q-m9x5-9g6j

GHSA-9j8q-m9x5-9g6j

Data races in async-coap

Source: GitHub Advisory Database (reviewed) High CVE-2020-36444

Packages

EcosystemPackageAffectedFixed in
crates.io async-coap <= 0.1.0 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

An issue was discovered in the async-coap crate through 2020-12-08 for Rust. Affected versions of this crate implement Send/Sync for `ArcGuard<RC, T>` with no trait bounds on `RC`. This allows users to send `RC: !Send` to other threads and also allows users to concurrently access `Rc: !Sync` from multiple threads. This can result in memory corruption from data race or other undefined behavior caused by sending `T: !Send` to other threads (e.g. dropping `MutexGuard<T>` in another thread that didn't lock its mutex).

References

External links from the advisory. They lead to third-party sites.