CVE-2026-52987
published high CVSS 3.1 · 7.8drm/amdgpu: avoid double drm_exec_fini() in userq validate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux42f148788469792df207751e2339ef2bb8a1e33e to < c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38 · 42f148788469792df207751e2339ef2bb8a1e33e to < 508babf310365f1107a2e8831c267c292a286818 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.19 (affected) · 0 to < 6.19 (unaffected · semver) · 7.0.10 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Red Hat Enterprise Linux | 7, 8, 9, 10 | kernel | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 6 | kernel | Unknown | Not stated | redhat-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-azure-7.0 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-azure-7.0-cloud-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | 7, 8 | kernel-rt | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 9 | kernel-rt | Affected | Not stated | redhat-SADP |
| Ubuntu | noble | linux-azure-7.0-headers-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-azure-7.0-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-28-generic-64k | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-gcp-7.0 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-gcp-7.0-headers-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-gcp-7.0-tools-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-headers-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-headers-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-headers-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-headers-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-headers-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-headers-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-headers-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-headers-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-headers-7.0.0-28-generic-64k | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-hwe-7.0 | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-hwe-7.0-cloud-tools-7.0.0-28 | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-hwe-7.0-headers-7.0.0-28 | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-hwe-7.0-tools-7.0.0-28 | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-image-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-28-generic-64k | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-lib-rust-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-modules-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-modules-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-modules-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-modules-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-modules-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-7.0.0-28-generic-64k | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-evdi-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-ipu6-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-ipu7-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-nvidia-fs-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-nvidia-fs-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-usbio-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-modules-vision-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-nvidia-7.0 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-nvidia-7.0-headers-7.0.0-1016 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-nvidia-7.0-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-oracle-7.0 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-oracle-7.0-headers-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-oracle-7.0-tools-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-tools-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-tools-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-tools-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-tools-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-tools-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-tools-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-tools-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-tools-7.0.0-28-generic | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | noble | linux-tools-7.0.0-28-generic-64k | Advisory build | 7.0.0-28.28~24.04.1 | USN-8569-1 |
| Ubuntu | resolute | bpftool | Advisory build | 7.7.0+7.0.0-28.28 | USN-8566-1 |
| Ubuntu | resolute | linux | Advisory build | 7.0.0-28.28 | USN-8566-1 |
| Ubuntu | resolute | linux-aws | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-aws-cloud-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-aws-headers-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-aws-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-azure | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-cloud-tools-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde-cloud-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde-headers-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-headers-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-tools-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1003-gke | Advisory build | 7.0.0-1003.4 | USN-8566-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1003-gke-64k | Advisory build | 7.0.0-1003.4 | USN-8566-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1008-gcp | Advisory build | 7.0.0-1008.8 | USN-8566-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1008-gcp-64k | Advisory build | 7.0.0-1008.8 | USN-8566-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1008-oracle | Advisory build | 7.0.0-1008.8 | USN-8593-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1008-oracle-64k | Advisory build | 7.0.0-1008.8 | USN-8593-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1009-aws | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1009-aws-64k | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1009-azure-fde | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1009-oem | Advisory build | 7.0.0-1009.9 | USN-8568-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1010-azure | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: avoid double drm_exec_fini() in userq validate When new_addition is true, amdgpu_userq_vm_validate() calls drm_exec_fini(&exec) before iterating over the collected HMM ranges and calling amdgpu_ttm_tt_get_user_pages(). If amdgpu_ttm_tt_get_user_pages() fails in that path, the code jumps to unlock_all and calls drm_exec_fini(&exec) a second time on the same exec object. drm_exec_fini() is not idempotent: it frees exec->objects and may also drop exec->contended and finalize the ww acquire context. Route that error path directly to the range cleanup once exec has already been finalized. Issue found using a prototype static analysis tool and confirmed by code review. (cherry picked from commit 2802952e4a07306da6ebe813ff1acacc5691851a)
A flaw was found in the Linux kernel. A double free vulnerability exists in the `drm/amdgpu` component within the `userq validate` function. This issue arises because the `drm_exec_fini()` function is called twice on the same execution object, which is not designed to be idempotent. An attacker could potentially exploit this to cause a denial of service or lead to unpredictable system behavior.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is reached through AMDGPU DRM ioctls on a local DRM render/primary device, not through network, adjacent, or physical input. AC:L - A local attacker can create and map userptr-backed AMDGPU BOs and then trigger user queue VM validation; the failing `amdgpu_ttm_tt_get_user_pages()` path can be induced with attacker-controlled invalidated or unsuitable user memory. PR:L - The ioctl is registered with `DRM_AUTH|DRM_RENDER_ALLOW`, so a render-node client can reach it without root, DRM master, or real administrative capabilities. UI:N - No victim action is required after the local attacker runs the ioctl sequence. S:U - The corruption occurs inside the kernel driver and any resulting privilege escalation or crash remains within the same kernel security authority. C:H - The bug double-finalizes a `drm_exec`, causing use-after-free/double-free of kernel-managed objects; such memory corruption can reasonably be leveraged for kernel memory disclosure. I:H - The same use-after-free/double-free condition can corrupt allocator and object state, making arbitrary kernel memory modification or control-flow compromise defensible. A:H - Even without full exploitation, double-free/use-after-free in kernel cleanup paths can oops, panic, or otherwise crash the system.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.0 | high | redhat-SADP · adp | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 42f148788469792df207751e2339ef2bb8a1e33e to < c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38 (affected · git)42f148788469792df207751e2339ef2bb8a1e33e to < 508babf310365f1107a2e8831c267c292a286818 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.19 (affected)0 to < 6.19 (unaffected · semver)7.0.10 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 6 | Default: unknown | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: affected | redhat-SADP · adp |
Weaknesses
1- CWE-1341 Multiple Releases of Same Resource or Handle
References
5- https://access.redhat.com/security/cve/CVE-2026-52987
- RHBZ#2492365 https://bugzilla.redhat.com/show_bug.cgi?id=2492365
- https://git.kernel.org/stable/c/508babf310365f1107a2e8831c267c292a286818
- https://git.kernel.org/stable/c/c7c3ae7c01e5a0742b93cb9b40800bdd7f811e38
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52987.json
Provider assertions
2Linux · cna
drm/amdgpu: avoid double drm_exec_fini() in userq validate
redhat-SADP · adp
kernel: drm/amdgpu: avoid double drm_exec_fini() in userq validate
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 85025849ffa0e9f5b42a7516bbf1bf0b61e296655319398f0712ca6fbe00a57c
- Ingested
- 23 Sep 2026, 09:19:36 UTC
- Source record
- Official CVE record