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 7887838330B for ; Thu, 25 Jun 2026 08:45:46 +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=1782377147; cv=none; b=YEzZrH78Fx+U1xJbOpdPB5xzQKkIFpCm/Y0N9moRMjSlu9a5LbvWOme/DwwQlJyrrRPfUJw4FbRJvxCCyxQZ/R9Lq2xx9lcsxxByuXlCp4SxZynPwiZD8YzmyIx3Eb/tQPu/8tUQBfr10LpSwzl6xyflw/1rGC0938vrTvk+qS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377147; c=relaxed/simple; bh=Ndl3rRDzDc1AG/nU/2BJD+EtEkbm1afH/mq3PZAB7lM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HowMvxtdDNdR/OLGo8yS3DRj8ZETdLxio/zqWkTqMVjzC7HsacC00i+nnCK1lcp6qQYQduk1EcotjjBqLxyZBabAq1fLN6mM06IXu2cUtqQwYZB1toeHzF1MksVLWjdwae6xjuBguL9Sr2fusllJJlnGI3hH3tkC+WYAWXyYNA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SAlVdnGF; 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="SAlVdnGF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD3281F000E9; Thu, 25 Jun 2026 08:45:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377146; bh=b/8LaukBvN2moQDYTrxt2t2zXj+05tCAbrxAE/QeG0k=; h=From:To:Cc:Subject:Date:Reply-To; b=SAlVdnGFOugDo3Ci5ghX/7JekZFeWkf6LBtDe/MORZ94TMD9N8DPhycyLFX23XkWS nK1MwcS+ecGV+Bf/yCI4a83Q3gXw2z2t5nWbARhAPG4P3Y0BFKsoeP9Qcg2mb8JXnq uyR3kkvK3JM4Rlk9N4t72VJ/RpnU/Ld2HfxOvclc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53173: accel/ethosu: fix OOB write in ethosu_gem_cmdstream_copy_and_validate() Date: Thu, 25 Jun 2026 09:40:21 +0100 Message-ID: <2026062553-CVE-2026-53173-b599@gregkh> X-Mailer: git-send-email 2.54.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=2867; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=z3dlrunZWCeH5sZqmWEJSkXeS4ZFG8FYjvguygA6lu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2LyN3sJodLY1lTj6xZaLrod2TN98s4nUMrVu3uvMR7 7+G50HrO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiUbcZ5pn7O946ukmsiH9p rFKz1Vr+t3NPbWWYnxpzSTowWubqzBv2hwQcmTxdppxlBAA= 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/ethosu: fix OOB write in ethosu_gem_cmdstream_copy_and_validate() The command stream parsing loop increments the index variable a second time when a 64-bit command word is encountered (bit 14 set), but does not re-check the loop bound before writing the second word: for (i = 0; i < size / 4; i++) { bocmds[i] = cmds[0]; if (cmd & 0x4000) { i++; bocmds[i] = cmds[1]; /* unchecked */ } } The buffer bocmds is backed by a DMA allocation of exactly size bytes from drm_gem_dma_create(ddev, size), giving valid indices [0, size/4-1]. When i == size/4 - 1 on entry to an iteration and bit 14 of cmds[0] is set, bocmds[size/4-1] is written in bounds, i is then incremented to size/4, and bocmds[size/4] writes four bytes past the end of the allocation. Userspace controls both the buffer contents and the size argument via the ioctl, making this a userspace-triggerable heap out-of-bounds write. Fix by checking the incremented index against the buffer bound before the second write and returning -EINVAL if the buffer is too small to contain the extended command. The Linux kernel CVE team has assigned CVE-2026-53173 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.0.13 with commit db6cb3e35cebf487f9a78ebd4cfa4b83708ff40d Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.1 with commit c0837b9cf6eabbad8b8cbddaff1a46a6d0a2e29d 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-53173 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/ethosu/ethosu_gem.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/db6cb3e35cebf487f9a78ebd4cfa4b83708ff40d https://git.kernel.org/stable/c/c0837b9cf6eabbad8b8cbddaff1a46a6d0a2e29d