Advisory

GHSA-jwph-qp5h-f9wj

Also known as: CVE-2020-36450, RUSTSEC-2020-0130

Summary

Data races in bunch

Details

An issue was discovered in the bunch crate through 2020-11-12 for Rust.
Affected versions of this crate unconditionally implements Send/Sync for Bunch<T>.
This allows users to insert T: !Sync to Bunch<T>. It is possible to create a data race to a T: !Sync by invoking the Bunch::get() API (which returns &T) from multiple threads. It is also possible to send T: !Send to other threads by inserting T inside Bunch<T> and sending Bunch<T> to another thread, allowing to create a data race by inserting types like T = Rc<_>.

Such data races can lead to memory corruption.

Severity

High Basis: The source's own band: HIGH

Dates

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

Affected packages and fixes

bunch

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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