GitHub Advisoryadvisory · crates.io

GHSA-64j8-7gp2-xjx5 Data races in try-mutex

MEDIUM Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2020-35924
Ecosystem
crates.io
Packages
try-mutex
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-787
Reviewed
2021-08-19

Affected packages

• crates.io try-mutex: < 0.3.0 → fixed in 0.3.0

Description

Affected versions of this crate unconditionally implemented Sync trait for TryMutex type. This allows users to put non-Send T type in TryMutex and send it to another thread, which can cause a data race. The flaw was corrected in the 0.3.0 release by adding T: Send bound for the Sync trait implementation.

Related

Alias · CVE (1)

  • CVE-2020-35924 An issue was discovered in the try-mutex crate before 0.3.0 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-787 Out-of-bounds Write weakness

References