CVE-2022-50189

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50189
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50189.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50189
Downstream
Published
2025-06-18T11:03:35Z
Modified
2025-10-16T05:02:51.089681Z
Summary
tools/power turbostat: Fix file pointer leak
Details

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]

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
eae97e053fe306edbbe60c934031edf9a8affd3f
Fixed
2ebf6f5946817f33fb33e613e359229e98164eb3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
eae97e053fe306edbbe60c934031edf9a8affd3f
Fixed
5e5fd36c58d6c820f7292ee492c3731c9a104a41

Affected versions

v5.*

v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
5.19.2