Files
advisory-db/packages/sys-info.json
T
2025-10-27 16:49:06 +00:00

79 lines
2.3 KiB
JSON

[
{
"id": "RUSTSEC-2020-0100",
"modified": "2023-06-13T13:10:24Z",
"published": "2020-05-31T12:00:00Z",
"aliases": [
"CVE-2020-36434",
"GHSA-2f5j-3mhq-xv58"
],
"related": [],
"summary": "Double free when calling `sys_info::disk_info` from multiple threads",
"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,\n`DFCleanup`, assumes a single threaded environment and will try to free the same memory twice in a multithreaded environment.\n\nThis results in consistent double-frees and segfaults when calling `sys_info::disk_info` from multiple threads at once.\n\nThe issue was fixed by moving the global variable into a local scope.\n\n## Safer Alternatives:\n - [`sysinfo`](https://crates.io/crates/sysinfo)",
"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",
"purl": "pkg:cargo/sys-info"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [
"linux"
],
"functions": [
"sys_info::disk_info"
]
},
"affected_functions": null
},
"database_specific": {
"categories": [
"memory-corruption"
],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.8.0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/sys-info"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0100.html"
},
{
"type": "REPORT",
"url": "https://github.com/FillZpp/sys-info-rs/issues/63"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]