tools/power turbostat: Fix file pointer leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tools/power turbostat: Fix file pointer leak
Currently if a fscanf fails then an early return leaks an open file pointer. Fix this by fclosing the file before the return. Detected using static analysis with cppcheck:
tools/power/x86/turbostat/turbostat.c:2039:3: error: Resource leak: fp [resourceLeak]
From the CVE record · Linux
The Linux kernel’s turbostat tool leaks an open file pointer if fscanf fails and the function returns early. The input does not establish what an attacker could do with this issue or whether exploiting it requires network access, authentication, or user interaction.
Engineers running Linux systems with the turbostat tool should check their kernel version; affected versions are not specified.