Advisory

RUSTSEC-2020-0112

Also known as: CVE-2020-36218, GHSA-r7rv-2rph-hvhj

Summary

ButtplugFutureStateShared allows data race to (!Send|!Sync) objects

Details

ButtplugFutureStateShared<T> implements Send & Sync regardless of T.

If T: !Send for ButtplugFutureStateShared<T>, it is possible to move non-Send types across thread boundaries (e.g. T=Rc<T>) and lead to undefined behavior.
If T: !Sync for ButtplugFutureStateShared<T>, it is possible to cause data race to T (e.g. T=Arc<Cell<_>>) and lead to undefined behavior.

The flaw was corrected in version 1.0.4 by removing manual implementations of Send/Sync for ButtplugFutureStateShared<T> to let rustc generate auto trait implementations with correct trait bounds on T.

Severity

Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2020-12-18 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

buttplug

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.0.4 (semver)

Fixed versions

1.0.4

Fix

  • Fixed version 1.0.4
    cargo update -p buttplug --precise 1.0.4

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: RustSec Advisory Database · CC0-1.0

Sources & licences