What’s Vulnerable › Vulnerabilities
GHSA-9hpw-r23r-xgm5: Data race in `Iter` and `IterMut`
- Severity: high (CVSS 7.5)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2022-06-17 · updated 2023-11-08
- Weakness: CWE-362
Description
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.
Affected products
- Crates.Io Thread Local: before 1.1.4 — fixed in 1.1.4
How to fix
Upgrade to a fixed version: Crates.Io Thread Local 1.1.4. Check the vendor advisory for mitigations.
References
- https://github.com/Amanieu/thread_local-rs/issues/33
- https://github.com/Amanieu/thread_local-rs
- https://rustsec.org/advisories/RUSTSEC-2022-0006.html
Get alerted when GHSA-9hpw-r23r-xgm5 or the next vulnerability affects your stack