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 148632FDC30 for ; Thu, 25 Jun 2026 08:45:30 +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=1782377131; cv=none; b=SxplCWbviS/Hh0tsv+IhDLYektCmkcRmd/CgQyJ1dtVlik4gVm0/2p31WtDfj2ENt1afLlIT/u09aETvibcFGq7Zx/vRJGR/ccKrZVr+zapWEim1aa4PsQZK78b2kfX0jF/R8UjDXw6jYOezFNTH/Gf8dEZt+qI/M3ZUsGU3Eac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377131; c=relaxed/simple; bh=CmCffx2BJ0tw6UP7bR7MB7+MulZmQHh9pyKl/VaadYA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=guBUcGD8QsWgyjbX8XqDvh6pFyrjsnMxzZRq+Og9gdX9tz7nfc7wz//uVQpjmwJsgl4Rwm9GEoWOaQEJsSssuihScbOHdoxfIl9/usjuRSKlggGQYoBn1Wd2q1+vVrFd+Q7GqJqFwNJm91SmWNfHcLzCuDijXRAzDONRXY0qaaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZVDlJIHN; 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="ZVDlJIHN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 432881F000E9; Thu, 25 Jun 2026 08:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377130; bh=8W0LITonMGMbggfgMahdmEm2OKl2SifGfISv8qa8GKA=; h=From:To:Cc:Subject:Date:Reply-To; b=ZVDlJIHNMTS+yEZatmaRwxt5Hd3LGl5OaGUYR2/s62Xaeodm58ZaYPqlO5exOfwWy 4ZtkcMXyGVLoRkuARejMTi/INErEWtVZx42f1pol8S/De84dFTQBSULOHs400OUYz+ xU+ycEvA6UGEQMl+4hO+KxzMJFYucGWomnJLDPKw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53172: accel/ethosu: fix IFM region index out-of-bounds in command stream parser Date: Thu, 25 Jun 2026 09:40:20 +0100 Message-ID: <2026062552-CVE-2026-53172-11a3@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=2837; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R76ttSq7dairvgNXkwea7Nn7lkUth7IqhHQfEaIDcqE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2LyOCF9wqf3fwnvSHjXt0928r3f/njYKcYGeHdsbRo KxPSwTvdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVqUzLNgyk//Ogg98PbOd jbTPhq60b+ydGMOwYKlyGecmbQ6DHe9X+MtU50WdfLemBAA= 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 IFM region index out-of-bounds in command stream parser NPU_SET_IFM_REGION extracts the region index with param & 0x7f, giving a maximum value of 127. However region_size[] and output_region[] in struct ethosu_validated_cmdstream_info are both sized to NPU_BASEP_REGION_MAX (8), giving valid indices [0..7]. Every other region assignment in the same switch uses param & 0x7: NPU_SET_OFM_REGION: st.ofm.region = param & 0x7; NPU_SET_IFM2_REGION: st.ifm2.region = param & 0x7; NPU_SET_WEIGHT_REGION: st.weight[0].region = param & 0x7; NPU_SET_SCALE_REGION: st.scale[0].region = param & 0x7; The 0x7f mask on IFM is inconsistent and appears to be a typo. feat_matrix_length() and calc_sizes() use the region index directly as an array subscript into the kzalloc'd info struct: info->region_size[fm->region] = max(...); A userspace caller supplying NPU_SET_IFM_REGION with param > 7 causes a write up to 127*8 = 1016 bytes past the start of region_size[], corrupting adjacent kernel heap data. Fix by applying the same & 0x7 mask used by all other region assignments. The Linux kernel CVE team has assigned CVE-2026-53172 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.0.13 with commit ee7bed779def61ebff1b92b0e851f412176fa416 Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.1 with commit 00f547e0dfecf83014fb32bcba587c6b684c1362 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-53172 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/ee7bed779def61ebff1b92b0e851f412176fa416 https://git.kernel.org/stable/c/00f547e0dfecf83014fb32bcba587c6b684c1362