RUSTSEC-2020-0100

    Dashboard / Vulnerabilities / RUSTSEC-2020-0100

    RUSTSEC-2020-0100

    Published: 31 May 2020Last Modified: 8 Nov 2023

    Summary: Double free when calling `sys_info::disk_info` from multiple threads

    Details: Affected versions of `sys-info` use a static, global, list to store temporary disk information while running. The function that cleans up this list, `DFCleanup`, assumes a single threaded environment and will try to free the same memory twice in a multithreaded environment. This results in consistent double-frees and segfaults when calling `sys_info::disk_info` from multiple threads at once. The issue was fixed by moving the global variable into a local scope. ## Safer Alternatives: - [`sysinfo`](https://crates.io/crates/sysinfo)

    Affected packages

    Package

    Name: sys-info

    Purl: pkg:cargo/sys-info

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.8.0

    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
    RUSTSEC-2020-0100 | CVE-DB