CVE-2025-68731: accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix an integer overflow in aie2queryctxstatusarray()
The unpublished smatch static checker reported a warning.
drivers/accel/amdxdna/aie2pci.c:904 aie2queryctxstatusarray() warn: potential user controlled sizeof overflow 'args->numelement args->elementsize' '1-u32max(user) 1-u32max(user)'
Even this will not cause a real issue, it is better to put a reasonable limitation for elementsize and numelement. Add condition to make sure the input elementsize <= 4K and numelement <= 1K.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In aie2_query_ctx_status_array(), validate user-controlled inputs so that element_size is no greater than 4K and num_element is no greater than 1K before calculating the allocation size.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68731?
The severity of CVE-2025-68731 is not explicitly rated, but it involves an integer overflow which could lead to potential vulnerabilities.
How do I fix CVE-2025-68731?
To fix CVE-2025-68731, update to the latest version of the Linux kernel that includes the patch for this vulnerability.
What are the potential impacts of CVE-2025-68731?
The potential impacts of CVE-2025-68731 may include system instability or exploitation that could lead to unauthorized access.
In which component is CVE-2025-68731 found?
CVE-2025-68731 is found in the accel/amdxdna component of the Linux kernel.
Who reported CVE-2025-68731?
CVE-2025-68731 was reported by the unpublished smatch static checker.