Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EF1825F98B for ; Wed, 24 Dec 2025 10:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572616; cv=none; b=i0/T/s2D3omMUZgUqUP/q0j9kx0UHBS/kZgW/JG6qgmyRZE9Tn/9Rwy6jC84zOtdQsqyrkE3HOeFqruG3W21XAB9iuc5ZFrk1JbYTTvOyGUDVI/wq6r8x1dchnTDYez8rHehe1V6NCDW0/XJMyr/cUYlVIF4/irHXm2DPTbr+0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572616; c=relaxed/simple; bh=DyTHx1XYEtYRWAR7DG9OQLntqVYZFXzaAuXlt0qdjE4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LP94/5XsVCrekul54FShpF3XY4oMDqQDtJcOo3UagaRcjNQ1gkfnv4Nqg8f955s5JK4PxxMB57wVw0ADbFKz7tx2W2cRG9fJBIgIZd8FwpkW+mZqQkblSuf3kbOY9ilg5hy2cWsRcVSZyKoauzNIAq+o9EHPeWwgpCFL+WrF4YY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uwqZVkCy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uwqZVkCy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E08E9C4CEFB; Wed, 24 Dec 2025 10:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572616; bh=DyTHx1XYEtYRWAR7DG9OQLntqVYZFXzaAuXlt0qdjE4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=uwqZVkCyiQkQzo0bdKc36yQNHXHHBR7C9J3kDE0yB1Po4KfoQAr23uTaY2KN8hDZP AV6geDGh0/U2eEGU2C1fcrC8YrJcnVQ/0brPCCOASBowB672ZewJYFj9jFxL34YHHv Au+ZMz9D2IP7tShAPKCt8+p0DJpmY1ZdH2nzX/Os= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68731: accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array() Date: Wed, 24 Dec 2025 11:35:33 +0100 Message-ID: <2025122406-CVE-2025-68731-d6d9@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2244; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M1MIM8GEyX331GuLm/UjDTB+SLp7jJDpJD4uJFxZqv0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB28VR/Z+Uvbuu9+aZB00MW2OQk/Q9Ttz7jf2ZrC9m VHUOuthRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEvodhQd82/ZQU0ZtnhT9v W1RiH20pXLznNMN890nCvBFT9wn/CpBxvlBqYb6inCEXAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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