~ / search / GHSA-9mxw-4856-9cm5

GHSA-9mxw-4856-9cm5

Data races in rusb

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

Packages

EcosystemPackageAffectedFixed in
crates.io rusb < 0.7.0 0.7.0

Details

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

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.

References

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