GitHub Advisoryadvisory · crates.io
GHSA-wr55-mf5c-hhwm Data races in late-static
HIGH
Official page ↗
- Aliases
- CVE-2020-36209
- Ecosystem
- crates.io
- Packages
- late-static
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-662
- Reviewed
- 2021-08-19
Affected packages
• crates.io late-static: < 0.4.0 → fixed in 0.4.0
Description
Affected versions of this crate implemented Sync for LateStatic with T: Send, so that it is possible to create a data race to a type T: Send + !Sync (e.g. Cell).
This can result in a memory corruption or other kinds of undefined behavior.
The flaw was corrected in commit 11f396c by replacing the T: Send bound to T: Sync bound in the Sync impl for LateStatic.
Related
Alias · CVE (1)
- CVE-2020-36209 An issue was discovered in the late-static crate before 0.4.0 for Rust. vulnerability
Weakness · CWE (1)
- CWE-662 Improper Synchronization weakness