Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rusb
  4. ›
  5. CVE-2020-36206

CVE-2020-36206: Data races in rusb

August 25, 2021 (updated June 13, 2023)

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

  • github.com/a1ien/rusb
  • github.com/a1ien/rusb/issues/44
  • github.com/advisories/GHSA-9mxw-4856-9cm5
  • nvd.nist.gov/vuln/detail/CVE-2020-36206
  • rustsec.org/advisories/RUSTSEC-2020-0098.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36206 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.0

Fixed versions

  • 0.7.0

Solution

Upgrade to version 0.7.0 or above.

Impact 7 HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-662: Improper Synchronization
  • CWE-787: Out-of-bounds Write

Source file

cargo/rusb/CVE-2020-36206.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:33 +0000.