From patchwork Thu Oct 10 18:35:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bethany Jamison X-Patchwork-Id: 1995681 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XPdk349Gfz1xvW for ; Fri, 11 Oct 2024 05:35:55 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1syy0p-0008DM-CX; Thu, 10 Oct 2024 18:35:47 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1syy0n-0008D8-LJ for kernel-team@lists.ubuntu.com; Thu, 10 Oct 2024 18:35:45 +0000 Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 369CD3F297 for ; Thu, 10 Oct 2024 18:35:44 +0000 (UTC) Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-83549342337so19294539f.3 for ; Thu, 10 Oct 2024 11:35:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728585343; x=1729190143; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aZ5ujUP7MVvqLE2LdcRtQDxAXAmGfUhIirirV5nwgy4=; b=QNNa4brmvUfCSjZuez0szN4UdixTxlvILr2mSNihrvCVosYYE4zwrXP4hTek/WihPT HuWpQ5x9T+q59eTnbmU/sFINi8gcRPZlS6DJt5zWo7S1S9F/L1oCsKDRFabEoTBei05P /H8sw+TC2cj+yyPmRe/dv9M+YlH5RbKi2UB2TwW3ZIx/HejcgOYsBZZErjH78t0e8KsX IN3UMSKtP2uiXcI3I7D95yZNXMr6Gukef1i2F2v7dGokZhO0XvDk1UsZOTuxZY1jRMWA FNorPI9TmlyRaH5UTBYLYIMyT+ORCw658qQddjbBTudgrSoIzGjYDqbaIO/hNywPas12 Rn1Q== X-Gm-Message-State: AOJu0YwZBe2HclriUge1qPX7kVExludnJUCpYoZy7re8yaPvMRSiasCy uOTFx5i9QrcxR3DL5DXiFHmeVbRI1alvjP8motHCRSkNMNJi5bdag1auQslI1e6C1u1Jr3tyuti 61u+09gi2nY7DbO4PdUkGCesNqLinEBFrI20Nunj3qPobVtfdcti4mCFpx+L0+hLpAkmd4K525T lIp4Spx1jfQg== X-Received: by 2002:a05:6e02:2182:b0:3a3:b1c4:817e with SMTP id e9e14a558f8ab-3a3b1c482f0mr6514825ab.3.1728585342652; Thu, 10 Oct 2024 11:35:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGY1ZdJgURdqun5tHMKrpK/9Z1G7BngKHCDXgJvN9DMZaLQZPUP3GwQfIDwuYCYCpNhz156eA== X-Received: by 2002:a05:6e02:2182:b0:3a3:b1c4:817e with SMTP id e9e14a558f8ab-3a3b1c482f0mr6514735ab.3.1728585342242; Thu, 10 Oct 2024 11:35:42 -0700 (PDT) Received: from smtp.gmail.com (167-248-51-36.oa02.lnk04.ne.dynamic.allophone.net. [167.248.51.36]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3a3afde46a0sm3738095ab.60.2024.10.10.11.35.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 11:35:41 -0700 (PDT) From: Bethany Jamison To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 0/1] CVE-2024-46758 Date: Thu, 10 Oct 2024 13:35:39 -0500 Message-Id: <20241010183540.29209-1-bethany.jamison@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" [Impact] 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. [Fix] Noble: Clean cherry-pick from linux-6.10.y Jammy: pending (5.15.0-125.135) Focal: pending (5.4.0-200.220) Bionic: fix sent to esm ML Xenial: fix sent to esm ML Trusty: won't fix [Test Case] Compile tested. [Where problems could occur] This fix affects those who use the driver for Texas Instruments National Semiconductor LM95234, an issue with this fix would be visible to the user via a loss of precision resulting in inaccurate measurements. Guenter Roeck (1): hwmon: (lm95234) Fix underflows seen when writing limit attributes drivers/hwmon/lm95234.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) Acked-by: Guoqing Jiang Acked-by: Ivan Hu