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 62B671E6DD5 for ; Mon, 21 Oct 2024 12:27:43 +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=1729513663; cv=none; b=FxBTBxfQkFE67q/DZzM4AMc/wj3EV0HdAhH3umtrTIyzaprTIwelj84nq0/kJp0NCWBoK0T/Z/XsiRkteO9vDPxbnBjZsFaIY4zGE9KC+Et8SgGq9MXzgh9dllSBiFYliZINxmYSp4Ktz27qWE2UitTmS7knvIcVEqOrgXr7NLE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729513663; c=relaxed/simple; bh=kh624rzik7QdDw/DBxNAxyFdZ+a3RGoj8MEJd9nzGYc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EnWKt1P66uzvictWuqiqIw/+jmHMeI0US/wY6Ue1Iq/I1WmF8FXbeY6ScIYyD9tRm1/2v8aXkyR/Pj+CiebxUcFGhKkBOzH033+fQy7FH3gJDgxCdQpjkX4P7swIpX85Hrvg9v/1nzVJ70EjIjgniBqPoAfqe/MzgJSBmiLlmlA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W7b44GtE; 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="W7b44GtE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C86BDC4CEC3; Mon, 21 Oct 2024 12:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729513663; bh=kh624rzik7QdDw/DBxNAxyFdZ+a3RGoj8MEJd9nzGYc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=W7b44GtE5kTkpF9MdrxazjknkMQ9IuL3K+sm7QsjC4Zi5Cr+kh4ZK33TiqvV3mS98 sHm28VPe/q01eDLfy6IiUIV2sD+o2iV1VMxBVuYyOn3QOLTTKt6ebeQ62QHHbamsvc lU0MiCR6V+/6p60BcdHgkSA3s+d2mrZcSGT/qlI0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49862: powercap: intel_rapl: Fix off by one in get_rpi() Date: Mon, 21 Oct 2024 14:27:28 +0200 Message-ID: <2024102125-CVE-2024-49862-b995@gregkh> X-Mailer: git-send-email 2.47.0 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=2167; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kh624rzik7QdDw/DBxNAxyFdZ+a3RGoj8MEJd9nzGYc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliHms3J8nc8vgVfuur4toTiw727dzYcvWY8etAO+PPO 175t36f2BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATMZZnmMU8y6Ohbta2XubY zVa7bWMEzVdv0WVYsCQjcK99U9w1l6Y9PqVp9anp31Z9AAA= 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: powercap: intel_rapl: Fix off by one in get_rpi() The rp->priv->rpi array is either rpi_msr or rpi_tpmi which have NR_RAPL_PRIMITIVES number of elements. Thus the > needs to be >= to prevent an off by one access. The Linux kernel CVE team has assigned CVE-2024-49862 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 98ff639a7289 and fixed in 6.6.54 with commit 288cbc505e20 Issue introduced in 6.5 with commit 98ff639a7289 and fixed in 6.10.13 with commit 851e7f7f14a1 Issue introduced in 6.5 with commit 98ff639a7289 and fixed in 6.11.2 with commit 6a34f3b0d7f1 Issue introduced in 6.5 with commit 98ff639a7289 and fixed in 6.12-rc1 with commit 95f6580352a7 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-2024-49862 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/powercap/intel_rapl_common.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/288cbc505e2046638c615c36357cb78bc9fee1e0 https://git.kernel.org/stable/c/851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6 https://git.kernel.org/stable/c/6a34f3b0d7f11fb6ed72da315fd2360abd9c0737 https://git.kernel.org/stable/c/95f6580352a7225e619551febb83595bcb77ab17