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 5145317109B for ; Wed, 18 Sep 2024 07:18:10 +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=1726643890; cv=none; b=A+85NcPf5GZI9N3sHtq8wxFXmk8CQnIbVdNytzAWHYSbm60ekrBAcjCrK7S5KGaCwqLQieiO2WFA7868kGNtOzvRib2s+mJ/LUUhfk4NgNI8GvSQnSms09xoi546wJYzRqYxWMa+9H9dG04EBLlYQ2zOFPkRUjsMOgt3zPTnFVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643890; c=relaxed/simple; bh=N9E4kxViS+g6hWfdErhHHRc5Hr8bndNjhnMS3HmZGPM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZToSUbdBsPwQU3YyX0SQrAHpReGHZhRsVtgNL1L2IrhBwPfldn9jIYMFwESNtg9W5vqm8bzbc5BcUY4YyBWaEvZ8Li9IarJvxbRZRXz42kMqTXqAK2vMWH/lYkwigCHwlS85BcjFcVOnadH1ualFbyZ8BxAgCUCDtSbTCb7Tq08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AMINM2x7; 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="AMINM2x7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2C18C4CECD; Wed, 18 Sep 2024 07:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643890; bh=N9E4kxViS+g6hWfdErhHHRc5Hr8bndNjhnMS3HmZGPM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AMINM2x780QvAvhB83XG1ojxNoHohocNCe552/8wfxSskCFz+obNKsUqaQH6PJAe1 NJvMq7IiOJ1tVom5cpbYS05wza0n9H25OR2Sdkr2j7nzbBmd46ceNYzbpIxf3I20n3 AYS67aIjCj+gbw2+j3EkIaT9p2r86R8hjYGULpWI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46759: hwmon: (adc128d818) Fix underflows seen when writing limit attributes Date: Wed, 18 Sep 2024 09:16:54 +0200 Message-ID: <2024091841-CVE-2024-46759-9b86@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=2487; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N9E4kxViS+g6hWfdErhHHRc5Hr8bndNjhnMS3HmZGPM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6qLiOisfza/Zcv/Yt3jrgMgMUUlWjtjaAN4ur2XZw l12Zzd1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERUTjDMs7fzD3GpmSweHFt0 NKei8RCnvGUrw4J5P4v3cD3PfmCivnayfHTEcW35VA8A 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: (adc128d818) 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-46759 to this issue. Affected and fixed versions =========================== Fixed in 4.19.322 with commit 05419d0056dc Fixed in 5.4.284 with commit 7645d783df23 Fixed in 5.10.226 with commit 2a3add62f183 Fixed in 5.15.167 with commit 019ef2d39636 Fixed in 6.1.110 with commit f7f5101af5b4 Fixed in 6.6.51 with commit 6891b11a0c62 Fixed in 6.10.10 with commit b0bdb43852bf Fixed in 6.11 with commit 8cad724c8537 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-46759 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/adc128d818.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/05419d0056dcf7088687e561bb583cc06deba777 https://git.kernel.org/stable/c/7645d783df23878342d5d8d22030c3861d2d5426 https://git.kernel.org/stable/c/2a3add62f183459a057336381ef3a896da01ce38 https://git.kernel.org/stable/c/019ef2d396363ecddc46e826153a842f8603799b https://git.kernel.org/stable/c/f7f5101af5b47a331cdbfa42ba64c507b47dd1fe https://git.kernel.org/stable/c/6891b11a0c6227ca7ed15786928a07b1c0e4d4af https://git.kernel.org/stable/c/b0bdb43852bf7f55ba02f0cbf00b4ea7ca897bff https://git.kernel.org/stable/c/8cad724c8537fe3e0da8004646abc00290adae40