
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68731 is an integer overflow vulnerability in the Linux kernel's AMD XDNA accelerator driver, specifically in the aie2_query_ctx_status_array() function located in drivers/accel/amdxdna/aie2_pci.c. The flaw arises from user-controlled multiplication of args->num_element * args->element_size, both of which can reach u32max, potentially causing a sizeof overflow. It was disclosed on December 24, 2025, and affects Linux kernel versions up to 6.18 (patched in 6.18.2 and 6.19-rc1). Feedly estimates the severity as HIGH, though no official CVSS score has been published at this time (Red Hat CVE, Red Hat Bugzilla).
The root cause is an integer overflow (CWE-190) in the aie2_query_ctx_status_array() function of the AMD XDNA accelerator driver. When computing the buffer size using args->num_element * args->element_size, both values are user-supplied 32-bit unsigned integers that can each reach u32max, causing the product to overflow and potentially result in an undersized memory allocation. The vulnerability was identified by the smatch static analysis tool, which flagged the expression as a potential user-controlled sizeof overflow. The fix adds input validation to cap element_size at 4KB and num_element at 1K, preventing the overflow condition (Red Hat Bugzilla, Red Hat CVE).
Successful exploitation could allow a local attacker with access to the AMD XDNA accelerator device to trigger unexpected kernel behavior, potentially leading to memory corruption or system instability. While the original kernel commit notes that the overflow may not cause a real issue in practice, the user-controlled nature of the overflow parameters represents a theoretical vector for buffer overflows or heap corruption in kernel space. The impact is limited to systems equipped with AMD XDNA accelerator hardware (e.g., systems with AMD NPU/AI accelerators) and requires local access to the affected device (Red Hat Bugzilla).
The Linux kernel has been patched in versions 6.18.2 and 6.19-rc1, with fixes available via commits 359653edd537 (stable) and 9e16c8bf9aeb (mainline). Users should update to a patched kernel version as the primary remediation. As a workaround, restricting unprivileged local user access to AMD XDNA accelerator devices can reduce exposure until a kernel update is applied (Red Hat CVE, Red Hat Bugzilla).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."