accel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4e370b5289624f46a356dcc94f9f87025eaa6036, Kernel 5da885c39baa70f570a8be35a78e85a351f33918, Kernel 63bbf9ac5dde2ba85e7b39d0a0b7d540e6252ba4 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap() When vm_insert_pages() fails, the error path calls vma->vm_ops->close(vma) which internally calls drm_gem_vm_close() → drm_gem_object_put(), releasing the GEM object reference acquired at the start of the function. However, the close_vma label then falls through to put_obj, which calls drm_gem_object_put() a second time on the same object. If the first put releases the last reference, the object is freed and the second put accesses freed memory, causing a use-after-free. Fix by returning directly from close_vma instead of falling through to put_obj, since the close handler already performs all necessary cleanup including the object put.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=e486147c912f653ef4b60a6c7dbd4168a4c56a9f <4e370b5289624f46a356dcc94f9f87025eaa6036, >=e486147c912f653ef4b60a6c7dbd4168a4c56a9f <5da885c39baa70f570a8be35a78e85a351f33918, >=e486147c912f653ef4b60a6c7dbd4168a4c56a9f <63bbf9ac5dde2ba85e7b39d0a0b7d540e6252ba4 | 4e370b5289624f46a356dcc94f9f87025eaa6036, 5da885c39baa70f570a8be35a78e85a351f33918, 63bbf9ac5dde2ba85e7b39d0a0b7d540e6252ba4 |
| linux-kernel: Kernel | >=6.16.0 <6.18.40, >=6.19.0 <7.1.5 | 6.18.40, 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket