Advisory

GHSA-9mxw-4856-9cm5

Also known as: CVE-2020-36206, RUSTSEC-2020-0098

Summary

Data races in rusb

Details

Affected versions of rusb did not require UsbContext to implement Send and Sync. However, through Device and DeviceHandle it is possible to use UsbContexts across threads. This issue allows non-thread safe UsbContext types to be used concurrently leading to data races and memory corruption. The issue was fixed by adding Send and Sync bounds to UsbContext.

Severity

High Basis: The source's own band: HIGH

Dates

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

Affected packages and fixes

rusb

crates.io · All systems

Affected

  • introduced 0, fixed 0.7.0 (semver)

Fixed versions

0.7.0

Fix

  • Fixed version 0.7.0
    cargo update -p rusb --precise 0.7.0

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