RUSTSEC-2022-0006
HIGHData race in `Iter` and `IterMut`
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.
- Published
- 23 Jan 2022
- Last modified
- 8 Nov 2023
- Weakness
- CWE-362
- Also known as
- GHSA-9hpw-r23r-xgm5
- Sources
- OSV GHSA-9hpw-r23r-xgm5JSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | thread_local | < 1.1.4 | 1.1.4 |
| OSV | crates.io | thread_local | >= 0.0.0-0, < 1.1.4 | 1.1.4 |
References
- https://github.com/Amanieu/thread_local-rs/issues/33 · WEB, REPORT
- https://github.com/Amanieu/thread_local-rs · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0006.html · WEB, ADVISORY
- https://crates.io/crates/thread_local · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jun 2022)