- Reported
-
- Issued
-
- Package
-
sys-info
(crates.io)
- Type
-
Vulnerability
- Categories
-
- Keywords
-
#concurrency
#double-free
- Aliases
-
- References
-
- CVSS Score
- 9.8
CRITICAL
- CVSS Details
-
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality Impact
- High
- Integrity Impact
- High
- Availability Impact
- High
- CVSS Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Patched
-
- Affected OSes
-
- Affected Functions
- Version
sys_info::disk_info
-
Description
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.
Safer Alternatives:
Advisory available under CC0-1.0
license.