Lucene search

K
osvGoogleOSV:RUSTSEC-2020-0100
HistoryMay 31, 2020 - 12:00 p.m.

Double free when calling `sys_info::disk_info` from multiple threads

2020-05-3112:00:00
Google
osv.dev
6

0.002 Low

EPSS

Percentile

61.9%

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:

CPENameOperatorVersion
sys-infolt0.8.0

0.002 Low

EPSS

Percentile

61.9%

Related for OSV:RUSTSEC-2020-0100