Not scored
accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()
- Severity
- Not scored
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 2f509fe6a42cda845890273fe759fb7ba9edad97 before 359653edd5374fbba28f93043554dcc494aee85f, from 2f509fe6a42cda845890273fe759fb7ba9edad97 before 9e16c8bf9aebf629344cfd4cd5e3dc7d8c3f7d82, 6.18 Not affected: before 6.18, from 6.18.2 up to 6.18.*, from 6.19 up to * | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: accel/amdxdna: Solucionar un desbordamiento de entero en aie2_query_ctx_status_array() El verificador estático smatch no publicado informó una advertencia. drivers/accel/amdxdna/aie2_pci.c:904 aie2_query_ctx_status_array() advertencia: posible desbordamiento de sizeof controlado por el usuario 'args -> num_element * args -> element_size' '1-u32max(user) * 1-u32max(user)' Aunque esto no causará un problema real, es mejor establecer una limitación razonable para element_size y num_element. Añadir una condición para asegurar que el element_size de entrada menor o igual que 4K y num_element menor o igual que 1K.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68731 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68731 changed 2026-10-13 | Public domain |