CVE-2020-36434
JSON

9.8critical

Double free in sys-info

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.23% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-2f5j-3mhq-xv58RUSTSEC-2020-0100

Description

An issue was discovered in the sys-info crate before 0.8.0 for Rust. sys_info::disk_info calls can trigger a double free.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
sys-info (crates.io)before 0.8.0, from 0.0.0-0 before 0.8.0GitHub Advisory Database, RustSec Advisory Database
sys-info_project sys-infobefore 0.8.0NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

An issue was discovered in the sys-info crate before 0.8.0 for Rust. sys_info::disk_info calls can trigger a double free.

GitHub Advisory Database

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.

RustSec Advisory Database

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:

NVD (es)

Se ha detectado un problema en la crate sys-info versiones anteriores a 0.8.0 para Rust. Las llamadas a la función sys_info::disk_info pueden desencadenar una doble liberación

References

Sources

SourceRecordLicence
CVE ListCVE-2020-36434 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-2f5j-3mhq-xv58 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0100 changed 2023-11-08CC0-1.0
NVDCVE-2020-36434 changed 2026-06-17Public domain