Skip to content
Heist/ feed
Back to feed
UnratedFix available

tools/power turbostat: Fix file pointer leak

Type: advisorySources: OSV

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]

Products
Kernel
Affected versions
Not specified
Fixed versions
5.19.2
CVEs
CVE-2022-50189
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:03 UTC · Revision 1

Source evidence

tools/power turbostat: Fix file pointer leak

core-osv · Original source

Published 18 Jun 2025, 11:03 UTC

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]

osv:CVE-2022-50189

Kernel

Fixed versions: 5.19.2

Complete source record
{
  "id": "7d7e6004878d4ab37e1667ed4904e908cd0c3a82f11305406f9bc637cc2dbda8",
  "url": "https://osv.dev/vulnerability/CVE-2022-50189",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "tools/power turbostat: Fix file pointer leak",
    "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]",
    "evidence": "osv:CVE-2022-50189",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.19.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50189",
      "aliases": [
        "CVE-2022-50189"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "eae97e053fe306edbbe60c934031edf9a8affd3f"
                },
                {
                  "fixed": "2ebf6f5946817f33fb33e613e359229e98164eb3"
                },
                {
                  "fixed": "5e5fd36c58d6c820f7292ee492c3731c9a104a41"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50189.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.19.0"
                },
                {
                  "fixed": "5.19.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50189.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.329973471Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2ebf6f5946817f33fb33e613e359229e98164eb3",
        "https://git.kernel.org/stable/c/5e5fd36c58d6c820f7292ee492c3731c9a104a41",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50189.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50189",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50189.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50189",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 491771,
  "published_at": "2025-06-18T11:03:35.532+00:00"
}