GHSA-77m6-x95j-75r5

Suggest an improvement
Source
https://github.com/advisories/GHSA-77m6-x95j-75r5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-77m6-x95j-75r5/GHSA-77m6-x95j-75r5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-77m6-x95j-75r5
Aliases
Published
2021-08-25T20:58:58Z
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": "2021-08-08T06:15:00Z",
    "cwe_ids": [
        "CWE-119",
        "CWE-362"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-09T22:40:34Z"
}
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