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 04C9F170854 for ; Wed, 18 Sep 2024 07:18:04 +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=1726643884; cv=none; b=HqCmUNF9jXGM0lDl7zHdZEOdDw89plL+dq/dSi+3Tc85SbFFPFSFgKH657jmPtKlcYv6tI32yhngKFGkOc86dXMm7svkDQDKhCXLb9L+ltn+zjgcS6Zbhg+ijKUVqTM7DJkHl93zDFNphxaoakItBNTVUxpE9HOQX1wZWa6JZEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643884; c=relaxed/simple; bh=bn8KLceMTWVO+RGLZzcu7Wtt7jF23pj2UHqaxbH3ykQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IxrxHb80U/DDHVGrJP/xqJmNuYOdqb9JCKnZc8Xp7AejhexK9WO4I5AjBQFlJJCJ0u/sQZoYrpwVdObXuvu6k75AvVtQ4s0x4qApFLL2FImkMD0chU2uteKBJUfcfFxbkO5QOuDSXYuDcpq4Kn5vwM6QiriYTiwPjcrlmK5PW+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XBOGkk2A; 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="XBOGkk2A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87124C4CEC3; Wed, 18 Sep 2024 07:18:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643883; bh=bn8KLceMTWVO+RGLZzcu7Wtt7jF23pj2UHqaxbH3ykQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XBOGkk2AuOXBFHeqG+uZV5E2r2mYhkWQ9go/lP3MepPnDLhUYUpqsBrpvKTQsAwaf RU9xSUIuM5rLehQaSx7CHlS/a3JzpBwp5sFxRTg3G5sAUmVd1r7pmOvd05t8qffbQN L4CwodLx1t5SxoDtzvHvWdGvieW2xpEwViXxC1dM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46757: hwmon: (nct6775-core) Fix underflows seen when writing limit attributes Date: Wed, 18 Sep 2024 09:16:52 +0200 Message-ID: <2024091841-CVE-2024-46757-4fbb@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=2491; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bn8KLceMTWVO+RGLZzcu7Wtt7jF23pj2UHqaxbH3ykQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6iItjsjv2bhbRHra/B6+Fc8zzlydfG6zcaIV693ls pNvvU+T6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJrJ/HsKBXLiT8vI5A3UOH 44Kp63lCtCuOezIsmHhSlbnb6da5ELkz510Fdqn+/XayGQA= 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: (nct6775-core) 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-46757 to this issue. Affected and fixed versions =========================== Fixed in 4.19.322 with commit 298a55f11edd Fixed in 5.4.284 with commit d6035c55fa9a Fixed in 5.10.226 with commit 8a1e958e2664 Fixed in 5.15.167 with commit 02bb3b4c7d56 Fixed in 6.1.110 with commit 0c23e18cef20 Fixed in 6.6.51 with commit 2f695544084a Fixed in 6.10.10 with commit 996221b03099 Fixed in 6.11 with commit 0403e10bf082 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-46757 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/nct6775-core.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/298a55f11edd811f2189b74eb8f53dee34d4f14c https://git.kernel.org/stable/c/d6035c55fa9afefc23f85f57eff1d4a1d82c5b10 https://git.kernel.org/stable/c/8a1e958e26640ce015abdbb75c8896301b9bf398 https://git.kernel.org/stable/c/02bb3b4c7d5695ff4be01e0f55676bba49df435e https://git.kernel.org/stable/c/0c23e18cef20b989a9fd7cb0a745e1259b969159 https://git.kernel.org/stable/c/2f695544084a559f181cafdfd3f864c5ff9dd1db https://git.kernel.org/stable/c/996221b030995cc5f5baa4a642201d64b62a17cd https://git.kernel.org/stable/c/0403e10bf0824bf0ec2bb135d4cf1c0cc3bf4bf0