Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8843341DE11 for ; Fri, 25 Sep 2026 10:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332904; cv=none; b=keIFwHK49YtJnicHIRxNiqVHHGqnNEZ05K5TcauUuqo0W3T9NuPts15l34kfO1y37WVns8XUddSRrhqzV/HGDfAoTO4HlxA6AQtdv4bwK//oveDUd7GVEkIuiwK84o46vAtQ9Z69Zxxx8aPaoJDdbqRuAd6HtA+SYG4ne2kd548= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332904; c=relaxed/simple; bh=FSFv7/wdhBd/Hko1i0t949zPjqs/ECFXZTnzZ/Z5cK0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GTVXA2pw/5S3RNqi/5U5eayfNLYZGEFnc5kml9AeYa/t8fGxK6krXMAvxkTZTFwrJYOcf7Lv1WywgI+eiBmv87D7xmijbHcQGt8WfOu8UvVCO8+S9J212xvm6+gr+g6fhTKkpmpaSSUYuMBN1f2SzZb+H43r6O4xm69Y85ST0uA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O56c/DD+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="O56c/DD+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BDD01F00898; Fri, 25 Sep 2026 10:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332901; bh=adeGX7hAX0H2AFSE1C4mA5JakOHbcplnaNmhCfrTw0k=; h=From:To:Cc:Subject:Date:Reply-To; b=O56c/DD+9iVa+KNQw+IlV9bxVs+n/MHAg+9/6XsFWwzW6kk2PMXqyipbsDhyFe7n/ nkEBM+UweChG6kPE8MJ0SQMiig9qngaXP9zECnrZ+W9WfVN6tihx0nPT2VJvVADtQe sUpbOqex8G1mPtsdYtanotvHAf+hxe6YSkPIOR2c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98145: accel/amdxdna: reject a command chain that carries no commands Date: Fri, 25 Sep 2026 12:39:52 +0200 Message-ID: <2026092518-CVE-2026-98145-0fb3@gregkh> X-Mailer: git-send-email 2.55.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=2513; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=19wQQWNWf2gvJWNVEx4dvkEQobBvgNhoZ0Z9V8dRWzk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/MOuM8QZexR7vcw9520R/65XasXOuh9237KOTlrE6 Hb1ywqRjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI7+cMCyayulmZBN53sl/i Yv7I2t69vFNRh2GubEKldZ10Ie/C4IY1/vzKv1sPH7wPAA== 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: reject a command chain that carries no commands A chain whose command_count is zero passes the payload length check, because struct_size(payload, data, 0) is just the header. The fill loop then does not run, so offset stays zero and the request is submitted with a zero-length buffer. On firmware without AIE2_NPU_COMMAND that ends at the opcode check, since op is still ERT_INVALID_CMD and aie2_get_chain_msg_op() answers MSG_OP_MAX_OPCODE. aie2_get_npu_chain_msg_op() answers MSG_OP_CHAIN_EXEC_NPU whatever it is given, so there the submission continues to drm_clflush_virt_range(cmd_buf, 0), which reads the byte before the buffer and faults on the vmap guard page. EXEC_CMD is reachable by any process that can open the render node. Reject the request instead. The Linux kernel CVE team has assigned CVE-2026-98145 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 8ed8b02396172b137ca8c78c3cb999ddf4fb0bbf and fixed in 7.2.7 with commit ed74e8d603df457bfcf16ed4f8f1660a1525759e Issue introduced in 7.1 with commit 8ed8b02396172b137ca8c78c3cb999ddf4fb0bbf and fixed in 7.3-rc2 with commit ef6d27af71e1dc43181ec797a6aaa77c27c36786 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-2026-98145 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_message.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/ed74e8d603df457bfcf16ed4f8f1660a1525759e https://git.kernel.org/stable/c/ef6d27af71e1dc43181ec797a6aaa77c27c36786