{"id":"CVE-2026-52987","published":"2026-06-24T16:29:01Z","modified":"2026-09-10T12:05:00Z","title":"drm/amdgpu: avoid double drm_exec_fini() in userq validate","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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(&exec) 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(&exec) a second time on the same\nexec object. drm_exec_fini() is not idempotent: it frees exec->objects\nand may also drop exec->contended 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)","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00176,"percentile":0.07061,"provenance":"source"},"cwes":[{"id":"CWE-1341","name":"Multiple Releases of Same Resource or Handle"}],"references":[{"url":"https://git.kernel.org/stable/c/c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38","tags":[]},{"url":"https://git.kernel.org/stable/c/508babf310365f1107a2e8831c267c292a286818","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-52987","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2492365","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52987.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":1.41},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 42f148788469792df207751e2339ef2bb8a1e33e, < c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38",">= 42f148788469792df207751e2339ef2bb8a1e33e, < 508babf310365f1107a2e8831c267c292a286818"]},{"vendor":"Linux","product":"Linux","versions":["6.19"]}],"euvd":{"id":"EUVD-2026-38855","exploited":false,"provenance":"source"}}