GHSA-x4mq-m75f-mx8m Delegate functions are missing `Send` bound
Missing Send bounds in delegate functions can cause data races and undefined behavior in Rust applications using Windows bindings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-x4mq-m75f-mx8m?
GHSA-x4mq-m75f-mx8m is a vulnerability in windows, published on 2 Jan 2022.
Official description
Affected versions of this crate did not require event handlers to have Send bound despite there being no guarantee of them being called on any particular thread, which can potentially lead to data races and undefined behavior.
The flaw was corrected in commit afe3252 by adding Send bounds.
Which versions are affected by GHSA-x4mq-m75f-mx8m?
3 open source packages ship an affected version, including windows.
| Package | Affected | Fixed in |
|---|---|---|
windows crates.io | From 0.1.2 | 0.32.0 |
windows crates.io | From 0.1.2 | 0.32.0 |
windows crates.io | From 0.1.2 | 0.32.0 |
How do I fix GHSA-x4mq-m75f-mx8m?
Upgrade windows to 0.32.0 or later.
Is GHSA-x4mq-m75f-mx8m being exploited?
There is no known exploitation of GHSA-x4mq-m75f-mx8m in the wild and no public exploit code.
Sources
Also known as RUSTSEC-2022-0008.