GHSA-gq4h-f254-7cw9

Suggest an improvement
Source
https://github.com/advisories/GHSA-gq4h-f254-7cw9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-gq4h-f254-7cw9/GHSA-gq4h-f254-7cw9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gq4h-f254-7cw9
Aliases
Published
2021-08-25T21:00:34Z
Modified
2023-11-08T04:03:44.903828Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Data races in ticketed_lock
Details

Affected versions of this crate unconditionally implemented Send for ReadTicket<T> & WriteTicket<T>. This allows to send non-Send T to other threads.

This can allows creating data races by cloning types with internal mutability and sending them to other threads (as T of ReadTicket<T>/WriteTicket<T>). Such data races can cause memory corruption or other undefined behavior.

The flaw was corrected in commit a986a93 by adding T: Send bounds to Send impls of ReadTicket<T>/WriteTicket<T>.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-362"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-05T21:48:24Z"
}
References

Affected packages

crates.io / ticketed_lock

Package

Name
ticketed_lock
View open source insights on deps.dev
Purl
pkg:cargo/ticketed_lock

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.0