Advisory

RUSTSEC-2020-0116

Also known as: CVE-2020-36436, GHSA-686f-ch3r-xwmh

Summary

PinSlab<T> and Unordered<T, S> need bounds on their Send/Sync traits

Details

Affected versions of this crate unconditionally implemented Send & Sync for types PinSlab<T> & Unordered<T, S>. This allows sending non-Send types to other threads and concurrently accessing non-Sync types from multiple threads.

This can result in a data race & memory corruption when types that provide internal mutability without synchronization are contained within PinSlab<T> or Unordered<T, S> and accessed concurrently from multiple threads.

The flaw was corrected in commits 92f40b4 & 6a6c367 by adding trait bound T: Send to Send impls for PinSlab<T> & Unordered<T, S> and adding T: Sync to Sync impls for PinSlab<T> & Unordered<T, S>.

Severity

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

Dates

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

Affected packages and fixes

unicycle

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.7.1 (semver)

Fixed versions

0.7.1

Fix

  • Fixed version 0.7.1
    cargo update -p unicycle --precise 0.7.1

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