CVE-2026-139774: accel/amdxdna: Fix possible use-after-free when freeing device BO
accel/amdxdna: Fix possible use-after-free when freeing device BO
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.19 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
Track heap BOs referenced by device BOs so they can be accessed without dereferencing abo->client, and call amdxdna_gem_heap_free() before clearing the client structure.
Event History
Frequently Asked Questions
When can the use-after-free occur?
It can occur after a DRM file descriptor is closed and amdxdna_client_cleanup() frees the client structure while device buffer objects remain alive. A later attempt to free one of those device BOs may access the freed client through abo->client.
What component and object lifetime condition are relevant for exposure?
The issue is in the Linux kernel amdxdna accelerator/DRM code path. Systems are relevant when device BOs can outlive the client associated with a closed DRM file descriptor, including device BOs that reference heap BOs.
What does the fix change?
The fix calls amdxdna_gem_heap_free() before abo->client is cleared in the BO close callback, because that function accesses the client. It also tracks heap BOs referenced by device BOs so they can be accessed without dereferencing abo->client.