brokenlamp/slock-rs · Security
Slock<T> allows sending non-Send types across thread boundaries
- GHSA ID
- GHSA-83r8-p8v6-6gfm
- Severity
- high
- Published
- Updated
- CVSS
- 8.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
Slock<T> unconditionally implements Send/Sync.
Affected versions of this crate allows sending non-Send types to other threads, which can lead to data races and memory corruption due to the data race.
CWEs
- CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')