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 7EAD862164 for ; Mon, 4 Mar 2024 18:11:53 +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=1709575913; cv=none; b=CUQqVF5YMr6bjF8tfl2STpZOTA9SlCF96/WhU9MkPjss6d6hYNI/anGH49JuqaoWGwEZHzh5A0Gj8pOLK6kNAZ24oKfOhwx9I0yI9wnhy9HQ4+eLYhn0SzSzm6xcOEGX3mAq/rSQOELMKW3B4J6f9RJhUC2FJbm2N8lSqtWhcQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709575913; c=relaxed/simple; bh=74miLTa60kmwme+R/yLMyHCptb0gmRMFeyXTCZxJdoE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YlwgtRcRD3OB2OI74AAVfazLiOmw46bNwRwbuyN0uvnla4Rj4yCh/lLWWG7ex2Nh2IqP1wPPbHcX0CvKS9PPQcwtWwSMixXSmmGy16DPgLf17p/6satObfZ+/9qxeLExHA6o+szyIHWJ2yuq8NNsCFJNeS4Bt8WmoppNK+E6r5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0O/XOLJS; 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="0O/XOLJS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A622C433C7; Mon, 4 Mar 2024 18:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709575913; bh=74miLTa60kmwme+R/yLMyHCptb0gmRMFeyXTCZxJdoE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0O/XOLJS4GAHSbSM+/oLBRxPgYqpi8NhL4Xz902eC7C2eXCMfStuHyIH4NmrD2w3a KIiLGuxWamrHrBioaRK3UkB/HEBfBNU7yuNV1E1DirrS/56tOd2CkwpsakFGKxur6A LovmF8A9FJ5z7iIFTrWO4+10gwi3IMzKKUWbZAwg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47098: hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations Date: Mon, 4 Mar 2024 19:11:25 +0100 Message-ID: <2024030415-CVE-2021-47098-e11f@gregkh> X-Mailer: git-send-email 2.44.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=2117; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=74miLTa60kmwme+R/yLMyHCptb0gmRMFeyXTCZxJdoE=; b=owGbwMvMwCRo6H6F97bub03G02pJDKnP+A5vn2l7aemlKf/KGw6oqBpuFudvWH3Sa/H+M4HVX m4frvlP6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHFrKMD8x4IJ8zYv0+elz +azNd029MJPx+jeG+ZVtKV/aQv8u1NEVat9avyWj3W3VOwA= 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: (lm90) Prevent integer overflow/underflow in hysteresis calculations Commit b50aa49638c7 ("hwmon: (lm90) Prevent integer underflows of temperature calculations") addressed a number of underflow situations when writing temperature limits. However, it missed one situation, seen when an attempt is made to set the hysteresis value to MAX_LONG and the critical temperature limit is negative. Use clamp_val() when setting the hysteresis temperature to ensure that the provided value can never overflow or underflow. The Linux kernel CVE team has assigned CVE-2021-47098 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit b50aa49638c7 and fixed in 5.15.12 with commit d105f30bea91 Issue introduced in 5.14 with commit b50aa49638c7 and fixed in 5.16 with commit 55840b9eae53 Please see https://www.kernel.org or 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-2021-47098 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/lm90.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/d105f30bea9104c590a9e5b495cb8a49bdfe405f https://git.kernel.org/stable/c/55840b9eae5367b5d5b29619dc2fb7e4596dba46