GHSA-w59h-378f-2frm

    Dashboard / Vulnerabilities / GHSA-w59h-378f-2frm

    GHSA-w59h-378f-2frm

    Published: 23 Jan 2024Last Modified: 10 Feb 2024

    Summary: Unsound sending of non-Send types across threads in threadalone

    Details: Affected versions can run the `Drop` impl of a non-Send type on a different thread than it was created on. The flaw occurs when a stderr write performed by the `threadalone` crate fails, for example because stderr is redirected to a location on a filesystem that is full, or because stderr is a pipe that has been closed by the reader. Dropping a non-Send type on the wrong thread is unsound. If used with a type such as a pthread-based `MutexGuard`, [the consequence is undefined behavior][mutexguard]. If used with `Rc`, there would be a data race on the reference count, which is likewise undefined behavior. [mutexguard]: https://github.com/rust-lang/rust/issues/23465#issuecomment-82730326

    Affected packages

    Package

    Name: threadalone

    Purl: pkg:cargo/threadalone

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.2.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-w59h-378f-2frm | CVE-DB