Advisory

RUSTSEC-2020-0152

Also known as: CVE-2020-36472, GHSA-rmff-f8w9-c9rm

Summary

ImmediateIO and TransactionalIO can cause data races

Details

The ImmediateIO and TransactionalIO types implement Sync for all contained
Expander<EI> types regardless of if the Expander itself is safe to use
across threads.

As the IO types allow retrieving the Expander, this can lead to non-thread
safe types being sent across threads as part of the Expander leading to data
races.

Severity

Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2020-12-18 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

max7301

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.2.0 (semver)

Fixed versions

0.2.0

Fix

  • Fixed version 0.2.0
    cargo update -p max7301 --precise 0.2.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: RustSec Advisory Database · CC0-1.0

Sources & licences