logo

CVE-2020-36434 sys-info

Package

Manager: cargo
Name: sys-info
Vulnerable Version: >=0 <0.8.0

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.00433 pctl0.6196

Details

Double free in sys-info 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.

Metadata

Created: 2021-08-25T20:58:15Z
Modified: 2023-06-13T22:04:49Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-2f5j-3mhq-xv58/GHSA-2f5j-3mhq-xv58.json
CWE IDs: ["CWE-415"]
Alternative ID: GHSA-2f5j-3mhq-xv58
Finding: F138
Auto approve: 1