{"id":"CVE-2026-72093","state":"PUBLISHED","title":"accel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap()\n\nWhen vm_insert_pages() fails, the error path calls vma->vm_ops->close(vma)\nwhich internally calls drm_gem_vm_close() → drm_gem_object_put(),\nreleasing the GEM object reference acquired at the start of the function.\nHowever, the close_vma label then falls through to put_obj, which calls\ndrm_gem_object_put() a second time on the same object.\n\nIf the first put releases the last reference, the object is freed and the\nsecond put accesses freed memory, causing a use-after-free.\n\nFix by returning directly from close_vma instead of falling through to\nput_obj, since the close handler already performs all necessary cleanup\nincluding the object put.","publishedAt":"2026-08-15T05:52:39.865Z","updatedAt":"2026-08-17T05:40:11.291Z","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":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","status":"affected","lessThan":"4e370b5289624f46a356dcc94f9f87025eaa6036","versionType":"git"},{"version":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","status":"affected","lessThan":"5da885c39baa70f570a8be35a78e85a351f33918","versionType":"git"},{"version":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","status":"affected","lessThan":"63bbf9ac5dde2ba85e7b39d0a0b7d540e6252ba4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/amdxdna_gem.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.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/amdxdna_gem.c"]}],"references":["https://git.kernel.org/stable/c/4e370b5289624f46a356dcc94f9f87025eaa6036","https://git.kernel.org/stable/c/5da885c39baa70f570a8be35a78e85a351f33918","https://git.kernel.org/stable/c/63bbf9ac5dde2ba85e7b39d0a0b7d540e6252ba4"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72093.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72093","state":"PUBLISHED","datePublished":"2026-08-15T05:52:39.865Z","dateUpdated":"2026-08-17T05:40:11.291Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.905Z"},"containers":{"cna":{"title":"accel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap()\n\nWhen vm_insert_pages() fails, the error path calls vma->vm_ops->close(vma)\nwhich internally calls drm_gem_vm_close() → drm_gem_object_put(),\nreleasing the GEM object reference acquired at the start of the function.\nHowever, the close_vma label then falls through to put_obj, which calls\ndrm_gem_object_put() a second time on the same object.\n\nIf the first put releases the last reference, the object is freed and the\nsecond put accesses freed memory, causing a use-after-free.\n\nFix by returning directly from close_vma instead of falling through to\nput_obj, since the close handler already performs all necessary cleanup\nincluding the object put."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","status":"affected","lessThan":"4e370b5289624f46a356dcc94f9f87025eaa6036","versionType":"git"},{"version":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","status":"affected","lessThan":"5da885c39baa70f570a8be35a78e85a351f33918","versionType":"git"},{"version":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","status":"affected","lessThan":"63bbf9ac5dde2ba85e7b39d0a0b7d540e6252ba4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/amdxdna_gem.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.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/amdxdna_gem.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4e370b5289624f46a356dcc94f9f87025eaa6036"},{"url":"https://git.kernel.org/stable/c/5da885c39baa70f570a8be35a78e85a351f33918"},{"url":"https://git.kernel.org/stable/c/63bbf9ac5dde2ba85e7b39d0a0b7d540e6252ba4"}],"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 - Exploitation requires local DRM ioctls (AMDXDNA_CREATE_BO, PRIME_HANDLE_TO_FD, GEM_CLOSE) and mmap() on the exported dma-buf fd through /dev/accel/accel*; amdxdna_gem_dmabuf_mmap() has no network, adjacent-radio, or physical-bus entry point.\nAC:L - After exporting a BO and closing its GEM handle (leaving only the dma-buf ref), the vm_insert_pages() error path deterministically double-puts the object; the attacker can force insert failure via RLIMIT_AS/cgroup memory pressure without uncontrollable races or victim-specific state.\nPR:L - CREATE_BO and PRIME ioctls are registered without DRM_ROOT_ONLY/AUTH; any unprivileged local user permitted to open the AMD XDNA accel node (typically render/video group on Ryzen AI systems) can create, export, and mmap buffers without real root or init-namespace capabilities.\nUI:N - The attacker opens the accel device, creates and exports a buffer, closes the handle, and mmap()s the dma-buf fd in their own process; no separate victim mount, file open, or other user interaction is required.\nS:U - The double drm_gem_object_put() use-after-free corrupts kernel slab metadata within the same kernel security authority; it is not a VM escape, hypervisor breakout, or IOMMU DMA-boundary bypass as a direct consequence of this refcount bug.\nC:H - UAF on the freed drm_gem_object during the second drm_gem_object_put() lets an attacker reclaim slab objects via heap grooming, enabling arbitrary kernel memory disclosure beyond a bounded metadata leak.\nI:H - The erroneous second put on a freed GEM object provides slab corruption primitives that can be developed into arbitrary kernel writes and local privilege escalation, not merely limited data modification.\nA:H - The use-after-free in drm_gem_object_put() dereferences freed kmem and can immediately provoke kernel oops/panic; repeated triggering sustains denial of service on the NPU host."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:40:11.291Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}