# CVE-2025-68731: accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-12-24T10:33:13.964Z
- Modified: 2026-10-13T11:10:00.203Z
- 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.

(As written by CVE List.)

## Affected

- 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 *)

## References

- <https://git.kernel.org/stable/c/359653edd5374fbba28f93043554dcc494aee85f>
- <https://git.kernel.org/stable/c/9e16c8bf9aebf629344cfd4cd5e3dc7d8c3f7d82>

## Sources

- CVE List: [CVE-2025-68731](https://www.cve.org/CVERecord?id=CVE-2025-68731), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-68731](https://nvd.nist.gov/vuln/detail/CVE-2025-68731), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2025-68731 · Whole record: https://cve.day/CVE-2025-68731.json · Rebuilt by cve.day 2026-11-25T22:59:09.879Z
