Skip to content
OpenAdvisories
High · 7.5 CVE-2019-16137 EUVD-2021-1759GHSA-hv7x-f3pv-gpwrRUSTSEC-2019-0013

Wrong memory orderings violates mutual exclusion in spin

Published Sep 9, 2019 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-spin 0.5.2-1 —
Debian 13 rust-spin 0.5.2-1 —
Debian 12 rust-spin 0.5.2-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io spin < 0.5.2 0.5.2 GHSA-hv7x-f3pv-gpwr
crates.io spin >= 0.0.0-0, < 0.5.2 0.5.2 RUSTSEC-2019-0013

References