CVE-2026-139701: accel/amdxdna: Fix potential deadlock in BO open and close callbacks
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix potential deadlock in BO open and close callbacks
In amdxdnagemobjopen(), abo->lock is held when calling amdxdnagemaddbousage(), which then acquires client->mmlock.
However, the heap update path may acquire these locks in the reverse order, creating a potential deadlock.
Fix this by saving the client pointer locally before acquiring abo->lock, and releasing abo->lock before calling amdxdnagemaddbousage().
Apply the same change to amdxdnagemobjclose().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In amdxdna_gem_obj_open() and amdxdna_gem_obj_close(), save the client pointer locally before acquiring abo->lock, then release abo->lock before calling amdxdna_gem_add_bo_usage() to avoid lock inversion.
Event History
Frequently Asked Questions
What activity is needed for the deadlock to occur?
The issue requires BO open or close callbacks to contend with the heap update path. The deadlock can occur because the two paths acquire abo->lock and client->mm_lock in opposite orders.
Which component is implicated?
The affected code is in the Linux kernel's accel/amdxdna component, specifically the BO open and close callback paths and their interaction with heap updates.