Bug 2373414 (CVE-2022-50189) - CVE-2022-50189 kernel: tools/power turbostat: Fix file pointer leak
Summary: CVE-2022-50189 kernel: tools/power turbostat: Fix file pointer leak
Keywords:
Status: NEW
Alias: CVE-2022-50189
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:01 UTC by OSIDB Bzimport
Modified: 2025-06-20 11:16 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:01:41 UTC
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]

Comment 1 Avinash Hanwate 2025-06-20 11:07:40 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061835-CVE-2022-50189-75d2@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.