GHSA-2grh-hm3w-w7hv

    Dashboard / Vulnerabilities / GHSA-2grh-hm3w-w7hv

    GHSA-2grh-hm3w-w7hv

    Published: 25 Aug 2021Last Modified: 8 Nov 2023

    Summary: Race condition in tokio

    Details: When aborting a task with JoinHandle::abort, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a LocalSet. This can easily result in race conditions as many projects use Rc or RefCell in their Tokio tasks for better performance.

    Affected packages

    Package

    Name: tokio

    Purl: pkg:cargo/tokio

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 1.8.0
    Fixed -1.8.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-2grh-hm3w-w7hv | CVE-DB