{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-52469",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2023-52469"
  ],
  "published": "2024-02-25T08:16:54Z",
  "summary": "drivers/amd/pm: fix a use-after-free in kv_parse_power_table",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers/amd/pm: fix a use-after-free in kv_parse_power_table\n\nWhen ps allocated by kzalloc equals to NULL, kv_parse_power_table\nfrees adev->pm.dpm.ps that allocated before. However, after the control\nflow goes through the following call chains:\n\nkv_parse_power_table\n  |-> kv_dpm_init\n        |-> kv_dpm_sw_init\n\t      |-> kv_dpm_fini\n\nThe adev->pm.dpm.ps is used in the for loop of kv_dpm_fini after its\nfirst free in kv_parse_power_table and causes a use-after-free bug.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.75",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2023-52469"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8a27d9d9fc9b5564b8904c3a77a7dea482bfa34e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8b55b06e737feb2a645b0293ea27e38418876d63"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/520e213a0b97b64735a13950e9371e0a5d7a5dc3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b6dcba02ee178282e0d28684d241e0b8462dea6a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/35fa2394d26e919f63600ce631e6aefc95ec2706"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/95084632a65d5c0d682a83b55935560bdcd2a1e3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3426f059eacc33ecc676b0d66539297e1cfafd02"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/28dd788382c43b330480f57cd34cde0840896743"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:24:39Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The vulnerable path runs only during amdgpu PCI/DRM device software init (amdgpu_device_ip_init \u2192 kv_dpm_sw_init \u2192 kv_dpm_init \u2192 kv_parse_power_table) on Kabini/Kaveri/Mullins APUs, which is local driver initialization and not reachable via network or adjacent-link protocols.\nAC:L - A local attacker can induce system-wide memory pressure so the GFP_KERNEL kzalloc of struct kv_ps fails; once that allocation fails, the premature kfree of adev->pm.dpm.ps followed by kv_dpm_fini\u2019s second free is deterministic with no uncontrolled race.\nPR:L - Exploitation is assessed from an unprivileged local account on a shared system with an affected AMD APU and amdgpu CIK support enabled; under the higher-severity interpretation, real root is not required for the attacker\u2019s privileges prior to exploitation (consistent with the sibling si_dpm double-free CVE-2023-52691).\nUI:N - No separate victim action such as opening a file or clicking a link is required; the flaw is triggered by driver initialization under attacker-influenced memory conditions.\nS:U - Impact remains within the host kernel\u2019s security authority as standard kernel heap corruption / potential privilege escalation, with no VM escape, IOMMU bypass, or other security-boundary crossing.\nC:H - The bug is a kernel double-free of the adev->pm.dpm.ps heap object (UAF-class memory corruption); reclaiming the freed slab can yield arbitrary read primitives.\nI:H - Double-free freelist corruption in the kernel allocator can be abused for overlapping objects and arbitrary write / control-flow hijacking, enabling full integrity compromise.\nA:H - The double-free reliably corrupts kernel heap state and can oops/panic the kernel or otherwise deny service even when not fully exploited for code execution."
    }
  }
}
