CVE-2022-50189

published 18 Jun 2025 · updated 11 May 2026

tools/power turbostat: Fix file pointer leak

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2ebf6f5946817f33fb33e613e359229e98164eb3 and Kernel 5e5fd36c58d6c820f7292ee492c3731c9a104a41.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.19, >=eae97e053fe306edbbe60c934031edf9a8affd3f <2ebf6f5946817f33fb33e613e359229e98164eb3, >=eae97e053fe306edbbe60c934031edf9a8affd3f <5e5fd36c58d6c820f7292ee492c3731c9a104a412ebf6f5946817f33fb33e613e359229e98164eb3, 5e5fd36c58d6c820f7292ee492c3731c9a104a41

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50189 severity on Zeptric[![CVE-2022-50189](https://zeptric.io/badge/cve/CVE-2022-50189.svg)](https://zeptric.io/cve/CVE-2022-50189)