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 4E3CD1B2182 for ; Tue, 24 Dec 2024 11:29:59 +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=1735039799; cv=none; b=sDVFPoZyoL8bVb/XPaVNV2awWIOJMomhYW183u+EI4awTjVs7M1Ul6R4rdEqb6XmQt6UOxKO2Zi5/vC8E+sj5oZqS4JK2Lrhxp0rKdsStUCFdkMKvutQWB7RYveMRyqIC1/btFcaVln3B78RliRn703FeRT8qAxAj9uLnmaMmJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039799; c=relaxed/simple; bh=drblWr8BLGM8zcIDtuMVLQ8VjerrGmesBZQAKoJ1VSM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tKu01s+Lc7/z7p9HHyVBFVwADvbXU2oW1pYChTG/VzsL1oljxLX0J4TSoUcXtXy8+T4l9vpCC8rpttUEwkxMngHrKmHgXeUU1bfri/ZYyd3RwGMECPObmQykzCV0TTJophjnmANw03AqRPV45+my1J2zDQuOSHNIumVx+oeYjvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FLfmF53S; 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="FLfmF53S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C526C4CED0; Tue, 24 Dec 2024 11:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735039798; bh=drblWr8BLGM8zcIDtuMVLQ8VjerrGmesBZQAKoJ1VSM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FLfmF53SAUauBgr/UlECN3sfPLrosg2Atz0sJjWJat44ke6iSylyqZBk5wYWf3PsM jG2xO9BIemwANwKoblzZ9Zsm8mz+NpoupLd3uuljH/hnrJuQO7cklnaEm+/XGQMXlw 3G+PRjQm4fePLjSU19JD6myfRgSv2P+ywEaEDG6g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53159: hwmon: (nct6775-core) Fix overflows seen when writing limit attributes Date: Tue, 24 Dec 2024 12:29:39 +0100 Message-ID: <2024122430-CVE-2024-53159-f910@gregkh> X-Mailer: git-send-email 2.47.1 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=2674; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=drblWr8BLGM8zcIDtuMVLQ8VjerrGmesBZQAKoJ1VSM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlZs6Vetop2HWOzbHRfKOM13erirLchwidFWCYt29Yb9 IdpYzlPRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk/h6GBWcLp4qd3d+lyenV wbf+Zfzt/3G8CQxzBb1L2Y5et3ZPvp+e6a13nP9J/scGAA== 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 overflows seen when writing limit attributes DIV_ROUND_CLOSEST() after kstrtoul() results in an overflow if a large number such as 18446744073709551615 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-53159 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit c3963bc0a0cf9ecb205a9d4976eb92b6df2fa3fd and fixed in 6.1.120 with commit ae703f8ff083c5267af30d6c8cf096d562623b3b Issue introduced in 5.19 with commit c3963bc0a0cf9ecb205a9d4976eb92b6df2fa3fd and fixed in 6.6.64 with commit 685c10269c41d23d7a2b85d3fd6b6345390c8746 Issue introduced in 5.19 with commit c3963bc0a0cf9ecb205a9d4976eb92b6df2fa3fd and fixed in 6.11.11 with commit a4712e4485f5c388bbe0d0e8f52978241ab34a29 Issue introduced in 5.19 with commit c3963bc0a0cf9ecb205a9d4976eb92b6df2fa3fd and fixed in 6.12.2 with commit dfa8bedfffcae87976b34a45a724deb9c3a0a88e Issue introduced in 5.19 with commit c3963bc0a0cf9ecb205a9d4976eb92b6df2fa3fd and fixed in 6.13-rc1 with commit 57ee12b6c514146c19b6a159013b48727a012960 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-53159 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/ae703f8ff083c5267af30d6c8cf096d562623b3b https://git.kernel.org/stable/c/685c10269c41d23d7a2b85d3fd6b6345390c8746 https://git.kernel.org/stable/c/a4712e4485f5c388bbe0d0e8f52978241ab34a29 https://git.kernel.org/stable/c/dfa8bedfffcae87976b34a45a724deb9c3a0a88e https://git.kernel.org/stable/c/57ee12b6c514146c19b6a159013b48727a012960