Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2022-50189

tools/power turbostat: Fix file pointer leak

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • eae97e053fe306edbbe60c934031edf9a8affd3f to < 2ebf6f5946817f33fb33e613e359229e98164eb3affected
  • eae97e053fe306edbbe60c934031edf9a8affd3f to < 5e5fd36c58d6c820f7292ee492c3731c9a104a41affected

Linux Linux

Default version status: affected

  • 5.19affected
  • 0 to < 5.19unaffected
  • 5.19.2 to ≤ 5.19.*unaffected
  • 6.0 to ≤ *unaffected

References