{"id":"CVE-2026-46311","state":"PUBLISHED","title":"drm/amdgpu/userq: fix access to stale wptr mapping","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu/userq: fix access to stale wptr mapping\n\nUse drm_exec to take both locks i.e vm root bo and\nwptr_obj bo to access the mapping data properly.\n\nThis fixes the security issue of unmap the wptr_obj while\na queue creation is in progress and passing other\nbo at same address.\n\n(cherry picked from commit 1fc6c8ab45dbee096469c08c13f6099d57a52d6c)","publishedAt":"2026-06-08T15:50:41.866Z","updatedAt":"2026-10-19T19:36:57.524Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5fb2f7fc21a3668e5794cc0d153641b9719713e1","status":"affected","lessThan":"2da62dbb4169e758c0b1a9378b39a373bf4fb111","versionType":"git"},{"version":"5fb2f7fc21a3668e5794cc0d153641b9719713e1","status":"affected","lessThan":"336a9186f3a4b65bbd865d93936605ac8a1a3991","versionType":"git"},{"version":"5fb2f7fc21a3668e5794cc0d153641b9719713e1","status":"affected","lessThan":"6da7b1242da4455b11c24ce667d1cab1a348c8ea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/mes_userqueue.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.9","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/mes_userqueue.c"]}],"references":["https://git.kernel.org/stable/c/2da62dbb4169e758c0b1a9378b39a373bf4fb111","https://git.kernel.org/stable/c/336a9186f3a4b65bbd865d93936605ac8a1a3991","https://git.kernel.org/stable/c/6da7b1242da4455b11c24ce667d1cab1a348c8ea"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/46xxx/CVE-2026-46311.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-46311","state":"PUBLISHED","datePublished":"2026-06-08T15:50:41.866Z","dateUpdated":"2026-10-19T19:36:57.524Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.111Z"},"containers":{"cna":{"title":"drm/amdgpu/userq: fix access to stale wptr mapping","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu/userq: fix access to stale wptr mapping\n\nUse drm_exec to take both locks i.e vm root bo and\nwptr_obj bo to access the mapping data properly.\n\nThis fixes the security issue of unmap the wptr_obj while\na queue creation is in progress and passing other\nbo at same address.\n\n(cherry picked from commit 1fc6c8ab45dbee096469c08c13f6099d57a52d6c)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5fb2f7fc21a3668e5794cc0d153641b9719713e1","status":"affected","lessThan":"2da62dbb4169e758c0b1a9378b39a373bf4fb111","versionType":"git"},{"version":"5fb2f7fc21a3668e5794cc0d153641b9719713e1","status":"affected","lessThan":"336a9186f3a4b65bbd865d93936605ac8a1a3991","versionType":"git"},{"version":"5fb2f7fc21a3668e5794cc0d153641b9719713e1","status":"affected","lessThan":"6da7b1242da4455b11c24ce667d1cab1a348c8ea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/mes_userqueue.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.9","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/mes_userqueue.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2da62dbb4169e758c0b1a9378b39a373bf4fb111"},{"url":"https://git.kernel.org/stable/c/336a9186f3a4b65bbd865d93936605ac8a1a3991"},{"url":"https://git.kernel.org/stable/c/6da7b1242da4455b11c24ce667d1cab1a348c8ea"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only through local DRM ioctls (DRM_IOCTL_AMDGPU_USERQ and DRM_IOCTL_AMDGPU_GEM_VA) on an AMDGPU render node (/dev/dri/renderD*), not via any network-facing path.\nAC:L - An attacker controls both sides of the race by running concurrent threads that issue USERQ_CREATE and GEM_VA UNMAP/REPLACE on the same wptr VA; amdgpu_vm_bo_unmap proceeds even when userq_va_mapped is set, making the window reliably triggerable.\nPR:L - Exploitation requires only access to the AMDGPU render node (DRM_AUTH|DRM_RENDER_ALLOW), which is available to unprivileged local users in the render/video group, not real root in the init namespace.\nUI:N - No victim interaction is required; the attacker automates the race with concurrent ioctl calls from their own process.\nS:U - The vulnerability corrupts kernel driver state and can lead to standard local kernel privilege escalation; it does not cross a VM, sandbox, or IOMMU security boundary.\nC:H - Operating on a stale BO pointer without holding locks can cause use-after-free and use attacker-replaced mappings, enabling arbitrary kernel memory disclosure through freed-object reuse and GART mapping confusion.\nI:H - The stale BO can be pinned and mapped into GART while a different BO occupies the VA, letting GPU firmware track wptr at the wrong physical address and enabling kernel heap corruption via UAF on amdgpu_bo structures.\nA:H - Use-after-free on BO reservation/pinning can kernel-oops the system, and incorrect wptr GART setup can hang or reset the GPU during queue scheduling."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-15T10:07:29.121Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.0.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-46311","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:21:50.965038Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","lang":"en","type":"CWE","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T19:36:57.524Z"}}]}}}