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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| sys-info (crates.io) | before 0.8.0, from 0.0.0-0 before 0.8.0 | GitHub Advisory Database, RustSec Advisory Database |
| sys-info_project sys-info | before 0.8.0 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV: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
| https://rustsec.org/advisories/RUSTSEC-2020-0100.html | advisory, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/sys-info/RUSTSEC-2020-0100.md | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36434 | advisory | |
| https://github.com/FillZpp/sys-info-rs/issues/63 | report, web | |
| https://github.com/FillZpp/sys-info-rs | package | |
| https://crates.io/crates/sys-info | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36434 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2f5j-3mhq-xv58 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0100 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36434 changed 2026-06-17 | Public domain |