VDB
Sign up
HIGH7.0

GHSA-9mxw-4856-9cm5

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/rusb
Introduced in: 0Fixed in: 0.7.0

Upgrade rusb to 0.7.0 or newer (ecosystem crates.io).

References