CVE-2022-50189

tools/power turbostat: Fix file pointer leak

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • eae97e053fe306edbbe60c934031edf9a8affd3f to before 2ebf6f5946817f33fb33e613e359229e98164eb3Affected
  • eae97e053fe306edbbe60c934031edf9a8affd3f to before 5e5fd36c58d6c820f7292ee492c3731c9a104a41Affected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.