{"id":"GHSA-2f5j-3mhq-xv58","summary":"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.","aliases":["CVE-2020-36434","RUSTSEC-2020-0100"],"modified":"2023-11-08T04:03:44.601087Z","published":"2021-08-25T20:58:15Z","database_specific":{"nvd_published_at":"2021-08-08T06:15:00Z","cwe_ids":["CWE-415"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-08-18T20:16:40Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36434"},{"type":"WEB","url":"https://github.com/FillZpp/sys-info-rs/issues/63"},{"type":"PACKAGE","url":"https://github.com/FillZpp/sys-info-rs"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/sys-info/RUSTSEC-2020-0100.md"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0100.html"}],"affected":[{"package":{"name":"sys-info","ecosystem":"crates.io","purl":"pkg:cargo/sys-info"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.8.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-2f5j-3mhq-xv58/GHSA-2f5j-3mhq-xv58.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}