Advisory

GHSA-36cg-4jff-5863

Also known as: CVE-2020-36446, GHSA-8892-84wf-cg8f, RUSTSEC-2020-0126

Summary

Data races in signal-simple

Details

Affected versions of this crate unconditionally implement Send/Sync for SyncChannel<T>. SyncChannel<T> doesn't provide access to &T but merely serves as a channel that consumes and returns owned T.

Users can create UB in safe Rust by sending T: !Send to other threads with SyncChannel::send/recv APIs. Using T = Arc<Cell<_> allows to create data races (which can lead to memory corruption), and using T = MutexGuard<T> allows to unlock a mutex from a thread that didn't lock the mutex.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:59 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

signal-simple

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences