CVE-2022-50189

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]

Score
CVSS 3.1 7.1 High
Status
Analyzed - 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2025-06-18
Last modified
2026-05-11
Weaknesses
CWE-772

Affected products

References