{
  "id": "CVE-2026-97496",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-97496",
  "published_at": "2026-09-24T16:04:43.625Z",
  "title": "drm/amdkfd: Fix OOB memory exposure in get_wave_state()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix OOB memory exposure in get_wave_state()\n\nThe get_wave_state() function for v9 trusts cp_hqd_cntl_stack_size and\ncp_hqd_cntl_stack_offset values read directly from the MQD, which are\nwritten by GPU microcode and fully attacker-controlled on the\nCRIU-restore path (via AMDKFD_IOC_RESTORE_PROCESS with H3).\n\nthis leads to an unbounded copy_to_user() that can leak adjacent\nGTT/kernel memory. If offset \u003e size, integer underflow produces a ~4 GiB\nread length, if size is set to 1 MiB against a 4 KiB allocation, we leak\n1 MiB of adjacent kernel memory (other queues' MQDs, ring buffers, KASLR\npointers).\n\nFix by clamping both cp_hqd_cntl_stack_size to the actual allocated\nbuffer size (q-\u003ectl_stack_size) and cp_hqd_cntl_stack_offset to the\nclamped size before performing arithmetic and copy_to_user().\n\nThis ensures we never read beyond the allocated kernel BO regardless of\nattacker-supplied MQD field values.",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 42c6c48214b726c30918e8dc80e2168607d13ae4, \u003c e2bef0f168be46692a6b900916ff5da3771480ed",
          "\u003e= 42c6c48214b726c30918e8dc80e2168607d13ae4, \u003c d9183d974ddd5f09d029beaf359275ac20d4d5fe",
          "\u003e= 42c6c48214b726c30918e8dc80e2168607d13ae4, \u003c ec646686613d8ab05b282d1463a7baa49fd6b83b",
          "\u003e= 42c6c48214b726c30918e8dc80e2168607d13ae4, \u003c 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5"
        ],
        "fixed_in": [
          "e2bef0f168be46692a6b900916ff5da3771480ed",
          "d9183d974ddd5f09d029beaf359275ac20d4d5fe",
          "ec646686613d8ab05b282d1463a7baa49fd6b83b",
          "7ef144458f48d5589e36f1b3d83e83db2e5c5ba5"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.18"
        ],
        "fixed_in": [
          "0",
          "6.6.158",
          "6.12.111",
          "6.18.53",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e2bef0f168be46692a6b900916ff5da3771480ed or d9183d974ddd5f09d029beaf359275ac20d4d5fe or ec646686613d8ab05b282d1463a7baa49fd6b83b or 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 or later.",
      "Upgrade Linux to 0 or 6.6.158 or 6.12.111 or 6.18.53 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
