{
  "id": "CVE-2025-38521",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38521",
  "published_at": "2025-08-16T10:55:08.373Z",
  "title": "drm/imagination: Fix kernel crash when hard resetting the GPU",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "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/imagination: Fix kernel crash when hard resetting the GPU\n\nThe GPU hard reset sequence calls pm_runtime_force_suspend() and\npm_runtime_force_resume(), which according to their documentation should\nonly be used during system-wide PM transitions to sleep states.\n\nThe main issue though is that depending on some internal runtime PM\nstate as seen by pm_runtime_force_suspend() (whether the usage count is\n\u003c= 1), pm_runtime_force_resume() might not resume the device unless\nneeded. If that happens, the runtime PM resume callback\npvr_power_device_resume() is not called, the GPU clocks are not\nre-enabled, and the kernel crashes on the next attempt to access GPU\nregisters as part of the power-on sequence.\n\nReplace calls to pm_runtime_force_suspend() and\npm_runtime_force_resume() with direct calls to the driver's runtime PM\ncallbacks, pvr_power_device_suspend() and pvr_power_device_resume(),\nto ensure clocks are re-enabled and avoid the kernel crash.",
  "cwe": "CWE-668",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \u003c 9f852d301f642223c4798f3c13ba15e91165d078",
          "\u003e= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \u003c e066cc6e0f094ca2120f1928d126d56f686cd73e",
          "\u003e= cc1aeedb98ad347c06ff59e991b2f94dfb4c565d, \u003c d38376b3ee48d073c64e75e150510d7e6b4b04f7"
        ],
        "fixed_in": [
          "9f852d301f642223c4798f3c13ba15e91165d078",
          "e066cc6e0f094ca2120f1928d126d56f686cd73e",
          "d38376b3ee48d073c64e75e150510d7e6b4b04f7"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.8"
        ],
        "fixed_in": [
          "0",
          "6.12.39",
          "6.15.7",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 9f852d301f642223c4798f3c13ba15e91165d078 or e066cc6e0f094ca2120f1928d126d56f686cd73e or d38376b3ee48d073c64e75e150510d7e6b4b04f7 or later.",
      "Upgrade Linux to 0 or 6.12.39 or 6.15.7 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
