CVE-2025-68731 accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()
An integer overflow in the AMD XDNA accelerator driver allows local attackers to trigger a denial of service by manipulating context status query parameters.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-68731?
CVE-2025-68731 is a vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()
The unpublished smatch static checker reported a warning.
drivers/accel/amdxdna/aie2_pci.c:904 aie2_query_ctx_status_array() warn: potential user controlled sizeof overflow 'args->num_element * args->element_size' '1-u32max(user) * 1-u32max(user)'
Even this will not cause a real issue, it is better to put a reasonable limitation for element_size and num_element. Add condition to make sure the input element_size <= 4K and num_element <= 1K.
Which versions are affected by CVE-2025-68731?
How do I fix CVE-2025-68731?
Apply the vendor's patch.
Is CVE-2025-68731 being exploited?
There is no known exploitation of CVE-2025-68731 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2025-68731, GHSA-xqwg-jrcf-r9xg, UBUNTU-CVE-2025-68731.