{"id":"GHSA-9hpw-r23r-xgm5","aliases":["RUSTSEC-2022-0006"],"status":"published","title":"Data race in `Iter` and `IterMut`","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\nwhen iterating over a `ThreadLocal`'s values.\n\nCrates using `Iter::next`, or `IterMut::next` are affected by this issue.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-362"],"published":"2022-01-23T12:00:00Z","modified":"2023-11-08T04:17:57Z","fixes":[{"ecosystem":"crates.io","package":"thread_local","fixed_in":["1.1.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"thread_local","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"thread_local","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"thread_local","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.1.4"}]}]}],"references":[{"url":"https://github.com/Amanieu/thread_local-rs/issues/33","tags":["web","report"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0006.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-9hpw-r23r-xgm5"},{"url":"https://github.com/Amanieu/thread_local-rs","tags":["package"]},{"url":"https://crates.io/crates/thread_local","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-9hpw-r23r-xgm5","title":"Data race in `Iter` and `IterMut`","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\nwhen iterating over a `ThreadLocal`'s values.\n\nCrates using `Iter::next`, or `IterMut::next` are affected by this issue.\n","status":"published","published":"2022-06-17T00:25:46Z","modified":"2023-01-12T05:01:09Z","cwes":["CWE-362"],"updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-9hpw-r23r-xgm5","title":"Data race in `Iter` and `IterMut`","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\nwhen iterating over a `ThreadLocal`'s values.\n\nCrates using `Iter::next`, or `IterMut::next` are affected by this issue.\n","status":"published","published":"2022-06-17T00:25:46Z","modified":"2023-11-08T04:17:57.540599Z","cwes":["CWE-362"],"updated_at":"2026-11-02T15:46:43.875515Z"},{"id":"RUSTSEC-2022-0006","title":"Data race in `Iter` and `IterMut`","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\nwhen iterating over a `ThreadLocal`'s values.\n\nCrates using `Iter::next`, or `IterMut::next` are affected by this issue.","status":"published","published":"2022-01-23T12:00:00Z","modified":"2023-11-08T04:17:57.540599Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
