CVE-2022-50189

HIGH

Linux Kernel - File Pointer Leak in turbostat

Title source: llm
STIX 2.1

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

CVSS v3 7.1
EPSS 0.0019
EPSS Percentile 8.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Details

CWE
CWE-772
Status published
Products (8)
linux/Kernel 5.19.0 - 5.19.2linux
Linux/Linux < 5.19
Linux/Linux 5.19
Linux/Linux 5.19.2 - 5.19.*
Linux/Linux 6.0
Linux/Linux eae97e053fe306edbbe60c934031edf9a8affd3f - 2ebf6f5946817f33fb33e613e359229e98164eb3
Linux/Linux eae97e053fe306edbbe60c934031edf9a8affd3f - 5e5fd36c58d6c820f7292ee492c3731c9a104a41
linux/linux_kernel 5.19 - 5.19.2
Published Jun 18, 2025
Tracked Since Feb 18, 2026