CRITICAL9.8
GHSA-2f5j-3mhq-xv58
Double free in sys-info
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/sys-info
Introduced in:
0Fixed in: 0.8.0Upgrade sys-info to 0.8.0 or newer (ecosystem crates.io).
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-36434[ADVISORY]
- https://github.com/FillZpp/sys-info-rs/issues/63[WEB]
- https://github.com/FillZpp/sys-info-rs[PACKAGE]
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/sys-info/RUSTSEC-2020-0100.md[WEB]
- https://rustsec.org/advisories/RUSTSEC-2020-0100.html[WEB]