Advisory

GHSA-9hpw-r23r-xgm5

Also known as: RUSTSEC-2022-0006

Summary

Data race in Iter and IterMut

Details

In the affected version of this crate, {Iter, IterMut}::next used a weaker memory ordering when loading values than what was required, exposing a potential data race
when iterating over a ThreadLocal's values.

Crates using Iter::next, or IterMut::next are affected by this issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-06-17 00:25 UTC
Modified
2023-11-08 04:17 UTC

Affected packages and fixes

thread_local

crates.io · All systems

Affected

  • introduced 0, fixed 1.1.4 (semver)

Fixed versions

1.1.4

Fix

  • Fixed version 1.1.4
    cargo update -p thread_local --precise 1.1.4

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