Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. futures-intrusive
  4. ›
  5. CVE-2020-35915

CVE-2020-35915: Data races in futures-intrusive

August 25, 2021 (updated June 13, 2023)

GenericMutexGuard was given the Sync auto trait as long as T is Send due to its contained members. However, since the guard is supposed to represent an acquired lock and allows concurrent access to the underlying data from different threads, it should only be Sync when the underlying data is.

This is a soundness issue and allows data races, potentially leading to crashes and segfaults from safe Rust code.

The flaw was corrected by adding a T: Send + Sync bound for GenericMutexGuard’s Sync trait.

References

  • github.com/Matthias247/futures-intrusive
  • github.com/Matthias247/futures-intrusive/issues/53
  • github.com/advisories/GHSA-4hjg-cx88-g9f9
  • nvd.nist.gov/vuln/detail/CVE-2020-35915
  • rustsec.org/advisories/RUSTSEC-2020-0072.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35915 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.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

cargo/futures-intrusive/CVE-2020-35915.yml

Spotted a mistake? Edit the file on GitLab.

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

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