CVE-2020-36434: Double free in sys-info
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.61972%
CWE
Published
8/25/2021
Updated
6/13/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
sys-info | rust | < 0.8.0 | 0.8.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the use of a static global variable (DFhashvector) in C code. DFCleanup() directly frees this global list without thread safety, causing double-frees when multiple threads invoke sys_info::disk_info(). get_disk_info() is the parent function that triggers DFCleanup(), making both functions critical to the vulnerability. The Rust function sys_info::disk_info() is the entry point but delegates to these unsafe C functions.