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 245661482E1 for ; Sat, 17 Aug 2024 09:24:10 +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=1723886650; cv=none; b=RKjLq6YwdrTQXPZb3PADT3y8nnah1DKdgFgNfFRjZB9Ar8FBVaYEdKklOLLA92Sntw0HPw2NS/O/2yCFsSOt5mkJT7Pwvgpq+ZTDo2HgDby+QxNtxRZW15D48AvFc9BvBZw4WfWf+staOCfiaiT2zA9z76CUlLguOQnf5Onjs8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886650; c=relaxed/simple; bh=yjiUvY6si+saqQZZIlWIR7rd8UJBwp0ogRJSWfm/NG0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nZyCpCZl6+CUY+WRSpaMqDdWr6kJmDjA6XkiFNFhWvl0Edi5evWMC84yBy8cKiS+bkH/wtqtFJo6JvbjRk71aS283uKesKtzZBY2kgX1gN28SfWCQUbRfCBygZnDMVNPjXgOA6kFD5zBDTvFzHQtq/yydxMe+Jt9GOEmOdKLGI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hCr33e+u; 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="hCr33e+u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E9B5C116B1; Sat, 17 Aug 2024 09:24:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886650; bh=yjiUvY6si+saqQZZIlWIR7rd8UJBwp0ogRJSWfm/NG0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hCr33e+uZWTtF1mli0xLkd1L9IMPxvSazOSKyzA+4KxW672kSvLjBEL3YQA0ahRB/ cUNV43KkdIZmMcUi6SkSQ0lH0qEDuQXI4NvnK3icOJPQXuqhe0GX4aGPV527AdQcWM rmk7Yce6hig+DDeVerruihL+yqaN9oDQ9Lhqxbec= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43852: hwmon: (ltc2991) re-order conditions to fix off by one bug Date: Sat, 17 Aug 2024 11:22:56 +0200 Message-ID: <2024081733-CVE-2024-43852-61e2@gregkh> X-Mailer: git-send-email 2.46.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=1959; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yjiUvY6si+saqQZZIlWIR7rd8UJBwp0ogRJSWfm/NG0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsm+uLxHMb3no17JV3vNwJlNN1L91P26IV7NsKrLIm DWzgfFJRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyE4x3DbNakq0c74r/U/g3w XVSSKpW0cOP5JIZ5Gqm8P3dJPJu2sPuubqlPb3vH79/7AQ== 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: hwmon: (ltc2991) re-order conditions to fix off by one bug LTC2991_T_INT_CH_NR is 4. The st->temp_en[] array has LTC2991_MAX_CHANNEL (4) elements. Thus if "channel" is equal to LTC2991_T_INT_CH_NR then we have read one element beyond the end of the array. Flip the conditions around so that we check if "channel" is valid before using it as an array index. The Linux kernel CVE team has assigned CVE-2024-43852 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 2b9ea4262ae9 and fixed in 6.10.3 with commit c180311c0a52 Issue introduced in 6.7 with commit 2b9ea4262ae9 and fixed in 6.11-rc1 with commit 99bf7c2eccff 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-43852 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/hwmon/ltc2991.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/c180311c0a520692e2d0e9ca44dcd6c2ff1b41c4 https://git.kernel.org/stable/c/99bf7c2eccff82760fa23ce967cc67c8c219c6a6