Advisory

GHSA-fg42-vwxx-xx5j

Also known as: CVE-2020-36438, GHSA-m296-j53x-xv95, RUSTSEC-2020-0118

Summary

Data race in tiny_future

Details

tiny_future contains a light-weight implementation of Futures. The Future type it has lacked bound on its Send and Sync traits. This allows for a bug where non-thread safe types such as Cell can be used in Futures and cause data races in concurrent programs. The flaw was corrected in commit c791919 by adding trait bounds to Future's Send and Sync.

Severity

High Basis: The source's own band: HIGH

Dates

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

Affected packages and fixes

tiny_future

crates.io · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p tiny_future --precise 0.4.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