[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025122406-CVE-2025-68731-d6d9@gregkh>
Date: Wed, 24 Dec 2025 11:35:33 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-68731: accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2025-68731 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 2f509fe6a42cda845890273fe759fb7ba9edad97 and fixed in 6.18.2 with commit 359653edd5374fbba28f93043554dcc494aee85f
Issue introduced in 6.18 with commit 2f509fe6a42cda845890273fe759fb7ba9edad97 and fixed in 6.19-rc1 with commit 9e16c8bf9aebf629344cfd4cd5e3dc7d8c3f7d82
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-68731
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/accel/amdxdna/aie2_pci.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/359653edd5374fbba28f93043554dcc494aee85f
https://git.kernel.org/stable/c/9e16c8bf9aebf629344cfd4cd5e3dc7d8c3f7d82
Powered by blists - more mailing lists