← Database

CVE-2022-50189

HIGH CVSS: 7.1 Published: 2025-06-18 Modified: 2026-06-17

Description

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]

Affected Platforms

Linux Linux Kernel

Weakness Type

CWE-772

References