mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-02-13 21:18:11 +01:00
967 B
967 B
[advisory]
id = "RUSTSEC-2020-0100"
package = "sys-info"
date = "2020-05-31"
url = "https://github.com/FillZpp/sys-info-rs/issues/63"
categories = ["memory-corruption"]
keywords = ["concurrency", "double free"]
[versions]
patched = [">= 0.8.0"]
unaffected = []
[affected]
os = ["linux"]
functions = { "sys_info::disk_info" = ["<= 0.1.1"] }
Double free when calling sys_info::disk_info from multiple threads
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.