Advisory

RUSTSEC-2020-0150

Also known as: CVE-2020-36470, GHSA-w9r2-qrpm-4rmj

Summary

RingBuffer can create multiple mutable references and cause data races

Details

The RingBuffer type retrieves mutable references from the DataProvider in a
non-atomic manner, potentially allowing the creation of multiple mutable
references. RingBuffer also implements the Send and Sync traits for all
types T.

This allows undefined behavior from the aliased mutable references as well
as 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-17 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

disrustor

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.0 (semver)

Fixed versions

0.3.0

Fix

  • Fixed version 0.3.0
    cargo update -p disrustor --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: RustSec Advisory Database · CC0-1.0

Sources & licences