CVE-2019-16137
HIGH 7.5CVSS 3.1Wrong memory orderings violates mutual exclusion in spin
An issue was discovered in the spin crate before 0.5.2 for Rust, when RwLock is used. Because memory ordering is mishandled, two writers can acquire the lock at the same time, violating mutual exclusion.
- Published
- 9 Sep 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-662
- Also known as
- GHSA-hv7x-f3pv-gpwrRUSTSEC-2019-0013
- Sources
- NVDJSONOSV GHSA-hv7x-f3pv-gpwrJSONOSV RUSTSEC-2019-0013JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | spin-rs_project | spin-rscpe:2.3:a:spin-rs_project:spin-rs:*:*:*:*:*:*:*:* |
< 0.5.2 | 0.5.2 |
| OSV | crates.io | spin | < 0.5.2 | 0.5.2 |
| OSV | crates.io | spin | >= 0.0.0-0, < 0.5.2 | 0.5.2 |
References
- https://rustsec.org/advisories/RUSTSEC-2019-0013.html · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2019-16137 · ADVISORY
- https://github.com/mvdnes/spin-rs/issues/65 · WEB, REPORT
- https://github.com/mvdnes/spin-rs/pull/66 · WEB
- https://github.com/mvdnes/spin-rs · PACKAGE
- https://crates.io/crates/spin · PACKAGE
History
- 25 Nov 2026 20:30 UTC · NVD: first stored (published 9 Sep 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Aug 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)