What’s Vulnerable › Vulnerabilities
CVE-2022-50189: tools/power turbostat: Fix file pointer leak
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-06-17
- Weakness: CWE-772
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
- Linux kernel: from 5.19 before 5.19.2 — fixed in 5.19.2
How to fix
Upgrade to a fixed version: Linux kernel 5.19.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2ebf6f5946817f33fb33e613e359229e98164eb3
- https://git.kernel.org/stable/c/5e5fd36c58d6c820f7292ee492c3731c9a104a41
Get alerted when CVE-2022-50189 or the next vulnerability affects your stack