Skip to content
Heist/ feed
Back to feed
UnratedFix available

cpufreq: amd-pstate: fix memory leak on CPU EPP exit

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: cpufreq: amd-pstate: fix memory leak on CPU EPP exit The cpudata memory from kzalloc() in amd_pstate_epp_cpu_init() is not freed in the analogous exit function, so fix that. [ rjw: Subject and changelog edits ]

Products
Kernel
Affected versions
Not specified
Fixed versions
6.6.36, 6.9.7
CVEs
CVE-2024-40997
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:46 UTC · Revision 1

Source evidence

cpufreq: amd-pstate: fix memory leak on CPU EPP exit

core-osv · Original source

Published 12 Jul 2024, 12:37 UTC

In the Linux kernel, the following vulnerability has been resolved: cpufreq: amd-pstate: fix memory leak on CPU EPP exit The cpudata memory from kzalloc() in amd_pstate_epp_cpu_init() is not freed in the analogous exit function, so fix that. [ rjw: Subject and changelog edits ]

osv:CVE-2024-40997

Kernel

Fixed versions: 6.6.36, 6.9.7

Complete source record
{
  "id": "03e113443c150e43e7bb27aaa16bce15219b1245a9ed180c7356007a89d674e0",
  "url": "https://osv.dev/vulnerability/CVE-2024-40997",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "cpufreq: amd-pstate: fix memory leak on CPU EPP exit",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: cpufreq: amd-pstate: fix memory leak on CPU EPP exit The cpudata memory from kzalloc() in amd_pstate_epp_cpu_init() is not freed in the analogous exit function, so fix that. [ rjw: Subject and changelog edits ]",
    "evidence": "osv:CVE-2024-40997",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.36",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-40997",
      "aliases": [
        "CVE-2024-40997"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ffa5096a7c338641f70fb06d4778e8cf400181a8"
                },
                {
                  "fixed": "448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd"
                },
                {
                  "fixed": "8015c17fe11a8608cc3eb83d0ab831e1845a9582"
                },
                {
                  "fixed": "cea04f3d9aeebda9d9c063c0dfa71e739c322c81"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40997.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.3.0"
                },
                {
                  "fixed": "6.6.36"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.9.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40997.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.131824307Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd",
        "https://git.kernel.org/stable/c/8015c17fe11a8608cc3eb83d0ab831e1845a9582",
        "https://git.kernel.org/stable/c/cea04f3d9aeebda9d9c063c0dfa71e739c322c81",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40997.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-40997",
        "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/2024/40xxx/CVE-2024-40997.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-40997",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 496973,
  "published_at": "2024-07-12T12:37:39.128+00:00"
}