Race Condition Affecting rusb package, versions <0.7.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-RUSB-1311811
  • published18 Jun 2021
  • disclosed18 Dec 2020
  • creditUnknown

Introduced: 18 Dec 2020

CVE-2020-36206  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade rusb to version 0.7.0 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition. UsbContext is not required 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.

CVSS Scores

version 3.1