{
  "id": "CVE-2026-52987",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-52987",
  "published_at": "2026-06-24T16:29:01.633Z",
  "title": "drm/amdgpu: avoid double drm_exec_fini() in userq validate",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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/amdgpu: avoid double drm_exec_fini() in userq validate\n\nWhen new_addition is true, amdgpu_userq_vm_validate() calls\ndrm_exec_fini(\u0026exec) before iterating over the collected HMM ranges and\ncalling amdgpu_ttm_tt_get_user_pages().\n\nIf amdgpu_ttm_tt_get_user_pages() fails in that path, the code jumps to\nunlock_all and calls drm_exec_fini(\u0026exec) a second time on the same\nexec object. drm_exec_fini() is not idempotent: it frees exec-\u003eobjects\nand may also drop exec-\u003econtended and finalize the ww acquire context.\n\nRoute that error path directly to the range cleanup once exec has\nalready been finalized.\n\nIssue found using a prototype static analysis tool\nand confirmed by code review.\n\n(cherry picked from commit 2802952e4a07306da6ebe813ff1acacc5691851a)",
  "cwe": "CWE-1341",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 42f148788469792df207751e2339ef2bb8a1e33e, \u003c c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38",
          "\u003e= 42f148788469792df207751e2339ef2bb8a1e33e, \u003c 508babf310365f1107a2e8831c267c292a286818"
        ],
        "fixed_in": [
          "c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38",
          "508babf310365f1107a2e8831c267c292a286818"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.19"
        ],
        "fixed_in": [
          "0",
          "7.0.10",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38 or 508babf310365f1107a2e8831c267c292a286818 or later.",
      "Upgrade Linux to 0 or 7.0.10 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
