CVE-2020-35914:
Data races in lock_api
4.7
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
8/25/2021
Updated
6/13/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
lock_api | rust | < 0.4.2 | 0.4.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper Send/Sync trait implementations on various guard types. Specifically:
- RwLockWriteGuard had unsound Sync implementation allowing concurrent mutable access
- Mapped guards lacked proper trait bounds checks for Send/Sync
- The Deref implementations enabled access to protected data without proper synchronization guarantees These issues are confirmed by the advisory's mention of 'data races through types not safe to Send' and the linked PR showing trait bound fixes.