CVE-2026-139434: accel/amdxdna: Reject device heap BO when dev_mem_size is not set
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Reject device heap BO when devmemsize is not set
NPU3 devices do not set devmemsize, since they do not use a device heap. Creating an AMDXDNABODEVHEAP BO on such a device hits the WARNON(!ispowerof2(devmemsize)) check, which any user with access to the device node can trigger.
Return -EOPNOTSUPP when devmemsize is 0.
Affected Software
Event History
Frequently Asked Questions
Who can trigger the warning condition?
Any local user with access to the affected AMDXDNA device node can trigger it by creating an AMDXDNA_BO_DEV_HEAP buffer object on an NPU3 device.
Are all AMDXDNA devices affected?
The issue applies to NPU3 devices that do not set dev_mem_size because they do not use a device heap. On those devices, dev_mem_size is 0.
What happens after the fix when a device heap buffer is requested on an NPU3 device?
The request is rejected with -EOPNOTSUPP instead of reaching the WARN_ON check.