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 05A9616BE01 for ; Wed, 18 Sep 2024 07:18:07 +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=1726643887; cv=none; b=OXNFgnICN52Y6vMKXfT8vM5G7k0wssU6M+GIWFh6s8eH2cTrDG3OQy+jdHoHsPm5zlYW7uunoGPqnN0BJaYGAn24oXIAL38z/KiLu17bH7s4y6U1Fx7axXPBv7dzNKV3QlyIGZ/O2r7Wv8lm+YXalEL3TX1+XK4ZOGjEiMLE1zU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643887; c=relaxed/simple; bh=mmUMNn2HX1Z3mDZeglOReUmRzGssfpG+eB0zgjTVhVI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nylp1ixvLi68PyF6zvOjqaw3HKkKAF3II0o/Xa6uSA1yE+A4gbZdvFBxazhqbuLjQerUnmPervSxafLOzHz4rAPwRvgbeXEbhs9h9eXjNWCluy+9s07zSp1iEPbaLiEG0phHWO8QiJ4SIBDt7LGYl9fdbaMIb+HPwLqZ7fOPfwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rxW4ecXs; 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="rxW4ecXs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FBA0C4CECD; Wed, 18 Sep 2024 07:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643886; bh=mmUMNn2HX1Z3mDZeglOReUmRzGssfpG+eB0zgjTVhVI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rxW4ecXsiqTtwD3hsgi92Mz4X6Eok09HykZk2U0jq4COP8/IIFn8pxlQx98yl/T09 7s2hCccVO85W1xn7e5UKLZJV9czrQeKC36Byq8dheXoqSgtZ0CjndeZJN/hgpBDtKt Gel3YgaRswJaNfbxfP0J2F6qV5fQsv5sWGO+JW0o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46758: hwmon: (lm95234) Fix underflows seen when writing limit attributes Date: Wed, 18 Sep 2024 09:16:53 +0200 Message-ID: <2024091841-CVE-2024-46758-6154@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=2481; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mmUMNn2HX1Z3mDZeglOReUmRzGssfpG+eB0zgjTVhVI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6iKvuJtea3smK1tzszLqoMCXb/Utsz7edlxV62Pzp eJ/o8OGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI/isM84zK7sYfW7M+/nGQ oL7uhNtarB6zljLMj714XPHG/HsqCp5RuT7Cb55F7U9cBAA= 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: (lm95234) 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-46758 to this issue. Affected and fixed versions =========================== Fixed in 4.19.322 with commit 93f0f5721d0c Fixed in 5.4.284 with commit 438453dfbbdc Fixed in 5.10.226 with commit 59c1fb9874a0 Fixed in 5.15.167 with commit 0fc27747633a Fixed in 6.1.110 with commit da765bebd90e Fixed in 6.6.51 with commit 46e4fd338d5b Fixed in 6.10.10 with commit 16f42953231b Fixed in 6.11 with commit af64e3e15378 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-46758 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/lm95234.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/93f0f5721d0cca45dac50af1ae6f9a9826c699fd https://git.kernel.org/stable/c/438453dfbbdcf4be26891492644aa3ecbb42c336 https://git.kernel.org/stable/c/59c1fb9874a01c9abc49a0a32f192a7e7b4e2650 https://git.kernel.org/stable/c/0fc27747633aa419f9af40e7bdfa00d2ec94ea81 https://git.kernel.org/stable/c/da765bebd90e1b92bdbc3c6a27a3f3cc81529ab6 https://git.kernel.org/stable/c/46e4fd338d5bdbaf60e41cda625b24949d2af201 https://git.kernel.org/stable/c/16f42953231be1e7be77bc24005270d9e0d9d2ee https://git.kernel.org/stable/c/af64e3e1537896337405f880c1e9ac1f8c0c6198