Bug 2513430 (CVE-2026-68245) - CVE-2026-68245 kernel: drm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_info_pasid()
Summary: CVE-2026-68245 kernel: drm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_i...
Keywords:
Status: NEW
Alias: CVE-2026-68245
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-10 12:36 UTC by OSIDB Bzimport
Modified: 2026-08-11 09:42 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-10 12:36:53 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_info_pasid()

The vm pointer returned from amdgpu_vm_get_vm_from_pasid() is only
valid while the lock is still being held. Once xa_unlock_irqrestore is
called and returned, the pointer is no longer under lock and is subject
to modification. Since, the caller still dereferences vm->task_info in
amdgpu_vm_get_task_info_vm() after the lock is removed, this causes a
use after unlock problem.

Remove the lifetime issue present in amdgpu_vm_get_task_info_pasid()
through removing the amdgpu_vm_get_vm_from_pasid() function from
amdgpu_vm.c and making the relevant code inline to hold the lock while
it is still in use.

(cherry picked from commit 9d01579f3f868b333acc901815972685989092c7)

Comment 1 Mauro Matteo Cascella 2026-08-11 09:39:38 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026081019-CVE-2026-68245-15a4@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.