{ "schema_version": "1.4.0", "id": "GHSA-2f5j-3mhq-xv58", "modified": "2023-06-13T22:04:49Z", "published": "2021-08-25T20:58:15Z", "aliases": [ "CVE-2020-36434" ], "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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "crates.io", "name": "sys-info" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "0.8.0" } ] } ] } ], "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" } ], "database_specific": { "cwe_ids": [ "CWE-415" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2021-08-18T20:16:40Z", "nvd_published_at": "2021-08-08T06:15:00Z" } }