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 ECB6516E86F for ; Wed, 18 Sep 2024 07:18:00 +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=1726643881; cv=none; b=syGGrvVFOuY7Nkep8sZ06sVE8clTUcsPp77y2Nb/qal0NM+PWjQ2yW4Tky/tcd32vxwcdWACyDRPRtWAUSZlmuAW1hR8ClrERgcAONNqP2OoPLQlu1z4m1FL7p7Y7pbBL1G0JHIE0LpBnyX3/tSeFbDYllR2LgaiV5lr0JhKJxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643881; c=relaxed/simple; bh=VihglbMybeuj6CBM2KOAmSU5EfqDsBH5En+7x/42nyE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MEZMfqnE777B4LaJoRXHg75zXBfoW95T6V8QBsZugYlNoZa73wsN2NWKKDhPy6+aP9vmxB6b9P4vToa2Kd8Q5jUkIbi6f6LN/O2x3uf8WHcUFvfHbTuYy2M6SjCx4ksbD+e76SlGt6wmWCHTrHZV9xqWGPZhPajhE9ksbkfBWP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vnkQj+MS; 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="vnkQj+MS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75671C4CECD; Wed, 18 Sep 2024 07:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643880; bh=VihglbMybeuj6CBM2KOAmSU5EfqDsBH5En+7x/42nyE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vnkQj+MSq0k8rmKVsLsE5pKRt+MRdrSsakq8qVjnTTwcwRt+a3j6OxnLUuxLg+ND9 WeddSGSDtA3MLdiULbYTkCe3m83cOy1967lbk8jW05YRnNvy0/+BneIXeKolT0N3QZ 0iRN30bdlfR5kuEO7iRABNPbHSYrpKpp3bT2Bt1g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46756: hwmon: (w83627ehf) Fix underflows seen when writing limit attributes Date: Wed, 18 Sep 2024 09:16:51 +0200 Message-ID: <2024091840-CVE-2024-46756-2ca6@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=2485; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VihglbMybeuj6CBM2KOAmSU5EfqDsBH5En+7x/42nyE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6iLslmvI5t6Oz356Wp79/L2WdZlbztjfureF87FQS GbNqtYFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRKYcY5vtFT5VaXnX1+do9 cv/SRH9NcTXvXsUwv3qr2sk3Nz41OP3szN9+6YjcBNGmhwA= 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: (w83627ehf) Fix underflows seen when writing limit attributes DIV_ROUND_CLOSEST() after kstrtol() results in an underflow if a large negative number such as -9223372036854775808 is provided by the user. Fix it by reordering clamp_val() and DIV_ROUND_CLOSEST() operations. The Linux kernel CVE team has assigned CVE-2024-46756 to this issue. Affected and fixed versions =========================== Fixed in 4.19.322 with commit 93cf73a7bfdc Fixed in 5.4.284 with commit 77ab0fd231c4 Fixed in 5.10.226 with commit 56cfdeb2c772 Fixed in 5.15.167 with commit cc4be794c8d8 Fixed in 6.1.110 with commit d92f0baf99a7 Fixed in 6.6.51 with commit 8fecb75bff1b Fixed in 6.10.10 with commit 26825b62bd1b Fixed in 6.11 with commit 5c1de37969b7 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-46756 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/w83627ehf.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/93cf73a7bfdce683bde3a7bb65f270d3bd24497b https://git.kernel.org/stable/c/77ab0fd231c4ca873ec6908e761970360acc6df2 https://git.kernel.org/stable/c/56cfdeb2c77291f0b5e4592731adfb6ca8fc7c24 https://git.kernel.org/stable/c/cc4be794c8d8c253770103e097ab9dbdb5f99ae1 https://git.kernel.org/stable/c/d92f0baf99a7e327dcceab37cce57c38aab1f691 https://git.kernel.org/stable/c/8fecb75bff1b7d87a071c32a37aa0700f2be379d https://git.kernel.org/stable/c/26825b62bd1bd3e53b4f44e0745cb516d5186343 https://git.kernel.org/stable/c/5c1de37969b7bc0abcb20b86e91e70caebbd4f89