Advisory

RUSTSEC-2022-0006

Also known as: GHSA-9hpw-r23r-xgm5

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

Not rated by the source.

Dates

Published
2022-01-23 12:00 UTC
Modified
2023-11-08 04:17 UTC

Affected packages and fixes

thread_local

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences