Advisory

GHSA-64j8-7gp2-xjx5

Also known as: CVE-2020-35924, RUSTSEC-2020-0087

Summary

Data races in try-mutex

Details

Affected versions of this crate unconditionally implemented Sync trait for TryMutex<T> 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 20:50 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

try-mutex

crates.io · All systems

Affected

  • introduced 0, fixed 0.3.0 (semver)

Fixed versions

0.3.0

Fix

  • Fixed version 0.3.0
    cargo update -p try-mutex --precise 0.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences