CVE-2022-50189

Source
https://cve.org/CVERecord?id=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:35.532Z
Modified
2026-03-20T11:36:54.047717Z
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]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50189.json",
    "cna_assigner": "Linux"
}
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
Fixed
5e5fd36c58d6c820f7292ee492c3731c9a104a41

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50189.json"