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 5034017A319 for ; Thu, 27 Feb 2025 02:19:15 +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=1740622755; cv=none; b=ajNg8xrdUbFYBJl+G72eMKJ0jjIr/TtGTMRCRHGLbpORHftp8ybwPn5eS3qQvRibPV4Can26xUMDiLdLe9yvdAwNDT3wvDnAz51k7hfKxvBCrdkLYjoRmauq4j1oix3JpyFTfMTDX9VdBYIqtYmNzCbKZWB6px+lqjjYvrBoqhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622755; c=relaxed/simple; bh=t7p3xc117ACMcwVVUVeTC6ytqT2ktYul0ukoPXMo+QQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=niSOpxw5LKZ2vLgeTLpBuda4vSheGyaPT4qG9Pp+Ju4MMzS388sMuyvKYOVzejmBtgcUSpKQzeo60QAngEaTXGviYRhhi84I411xmUCToFYD4d6aEejW2hOsCCcBCClyPUSFCwS3N2mBAztr5QW9Wlz9jRBZ1wm+tWyq+f0y868= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C6V1Ctnc; 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="C6V1Ctnc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21753C4CED6; Thu, 27 Feb 2025 02:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622755; bh=t7p3xc117ACMcwVVUVeTC6ytqT2ktYul0ukoPXMo+QQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=C6V1CtncEdffz0aKk7kTbr9ghURlEX8lcz88oYopWKKn4CFi8eFyufAlkn2Dx/J/s gX3tPLMoQ84Q5cBp6vIQoxU/JM5Jz39OTl1XH92NYVj7mi/1bv5qF5QNipRV07dL5M 5hkItrLdqB52ZkerSwkxLQw+9axEgTiTEMgyzu8E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21785: arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array Date: Wed, 26 Feb 2025 18:17:41 -0800 Message-ID: <2025022608-CVE-2025-21785-184c@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2726; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t7p3xc117ACMcwVVUVeTC6ytqT2ktYul0ukoPXMo+QQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T6vE61Y0H+++0X/yQ8fEKOaUEqbLjtmXC5W0n9qnG KvPfVzUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO5+Z5hwTlZ4X6dhRcuTLgZ XB9n6D4pY2OjC8P8sn/2yyx87ET7Def9/yuS2dSTIBIOAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array The loop that detects/populates cache information already has a bounds check on the array size but does not account for cache levels with separate data/instructions cache. Fix this by incrementing the index for any populated leaf (instead of any populated level). The Linux kernel CVE team has assigned CVE-2025-21785 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit 5d425c18653731af62831d30a4fa023d532657a9 and fixed in 6.1.129 with commit 4ff25f0b18d1d0174c105e4620428bcdc1213860 Issue introduced in 4.0 with commit 5d425c18653731af62831d30a4fa023d532657a9 and fixed in 6.6.79 with commit ab90894f33c15b14c1cee6959ab6c8dcb09127f8 Issue introduced in 4.0 with commit 5d425c18653731af62831d30a4fa023d532657a9 and fixed in 6.12.16 with commit 715eb1af64779e1b1aa0a7b2ffb81414d9f708e5 Issue introduced in 4.0 with commit 5d425c18653731af62831d30a4fa023d532657a9 and fixed in 6.13.4 with commit 67b99a2b5811df4294c2ad50f9bff3b6a08bd618 Issue introduced in 4.0 with commit 5d425c18653731af62831d30a4fa023d532657a9 and fixed in 6.14-rc3 with commit 875d742cf5327c93cba1f11e12b08d3cce7a88d2 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-21785 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: arch/arm64/kernel/cacheinfo.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/4ff25f0b18d1d0174c105e4620428bcdc1213860 https://git.kernel.org/stable/c/ab90894f33c15b14c1cee6959ab6c8dcb09127f8 https://git.kernel.org/stable/c/715eb1af64779e1b1aa0a7b2ffb81414d9f708e5 https://git.kernel.org/stable/c/67b99a2b5811df4294c2ad50f9bff3b6a08bd618 https://git.kernel.org/stable/c/875d742cf5327c93cba1f11e12b08d3cce7a88d2