CVE-2022-50189
N/A
N/A
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Linux | Linux | eae97e053fe306edbbe60c934031edf9a8affd3f < 2ebf6f5946817f33fb33e613e359229e98164eb3 | affected |
| Linux | Linux | eae97e053fe306edbbe60c934031edf9a8affd3f < 5e5fd36c58d6c820f7292ee492c3731c9a104a41 | affected |
| Linux | Linux | 5.19 | affected |
| Linux | Linux | 0 < 5.19 | unaffected |
| Linux | Linux | 5.19.2 <= 5.19.* | unaffected |
| Linux | Linux | 6.0 <= * | unaffected |
Weaknesses
References
- https://git.kernel.org/stable/c/2ebf6f5946817f33fb33e613e359229e98164eb3
- https://git.kernel.org/stable/c/5e5fd36c58d6c820f7292ee492c3731c9a104a41
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.