From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9E3243A59BC for ; Sun, 19 Jul 2026 15:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784475660; cv=none; b=JriFJkkcRa0/EXeS77CtOLuLSYQqLbDPOSIGohcS0bmD/Ve3Foq4JNU7H4EvnQPCkglSg7+vwVFEyM8KPJxQ9OGWHqNG+rwuaCSC5kPeLK4ndMujcwTwLH/VoQBtJZ2N4bVRbA7aWRz6dH3soBq7k4zpLrnKqSVox7yaD//Pf/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784475660; c=relaxed/simple; bh=5/0CM2J0LO/5asGMwsgKMlegJSkxEWm6XUVw8J0PKKg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V7j5m3AR1rHhjhHuORTlkf2RdUHkIgavMH8QrrR+SOOb2+CPbMNoi9LOT0AkErb8JL5mbzvizX1LdQEHgNdPocZh77YTS894hmb0JsB/e8u04saFzfBFLC2fa2iTo2JOGfhuWzlP8bap0i0444ElxkHISNYjHSgTbYnkgDjeB88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0FANkPSm; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0FANkPSm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A81551F000E9; Sun, 19 Jul 2026 15:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784475659; bh=i0R3tEBdVbX88SA/upnzqg2iNW9S+BcK1czhamZpo88=; h=From:To:Cc:Subject:Date:Reply-To; b=0FANkPSmOKIuThmUSfd08PH08LKt95DpT/k0qRx+z6Ke6L7+IBqjaO/Cco5gStP6T e/GD0FeHoHvNeuVwwQFL1x6iZGnAIrgRfWF5kSY520uiEm3f1WxMLcsAHi71qfN0yo iu2LXZFR6w1poYufzdhe3RJvwHjCsl+Sig8uHSo0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64038: hwmon: (lm90) Stop work before releasing hwmon device Date: Sun, 19 Jul 2026 17:38:20 +0200 Message-ID: <2026071905-CVE-2026-64038-16c2@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2915; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5k4uMiG3nBslAq+v5iAPaEmsiZgChcJtv+SxqPeDp5M=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkx72NjMn+IPOo0VGs/UfNK1/eXylOFulUyjht+LL6vY qw0Za92RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk9SLDPGXRCI+f+c8rvj9d soqLXVYtTHKnEMOCM7F9xi+itKsTmqo+eUm3WmZGfpcHAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: hwmon: (lm90) Stop work before releasing hwmon device Sashiko reports: In lm90_probe(), the devm action to cancel the alert_work and report_work (lm90_restore_conf) is registered in lm90_init_client() before devm_hwmon_device_register_with_info() is called. Because devm executes cleanup actions in reverse order during module unbind or probe failure, the hwmon device is unregistered and freed first. If lm90_alert_work() or lm90_report_alarms() runs in the window between the hwmon device being freed and the delayed works being cancelled, lm90_update_alarms() will dereference the freed data->hwmon_dev here. Fix the problem by canceling the workers separately after registering the hwmon device and before registering the interrupt handler. This ensures that the workers are canceled after interrupts are disabled and before the hwmon device is released. Add "shutdown" flag to indicate that device shutdown is in progress to prevent workers from being re-armed. The Linux kernel CVE team has assigned CVE-2026-64038 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit f6d0775119fb905fb02eafa98d575cf8ee792d46 and fixed in 6.18.34 with commit c98107817b0f6cdf51adc5e84e75c39ee25d8b28 Issue introduced in 6.0 with commit f6d0775119fb905fb02eafa98d575cf8ee792d46 and fixed in 7.0.11 with commit 479e297526aeb19c745eac5c1897f455f83dc5f8 Issue introduced in 6.0 with commit f6d0775119fb905fb02eafa98d575cf8ee792d46 and fixed in 7.1 with commit b09a45601094c7f4ec4db8090b825fa61e169d93 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-2026-64038 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/c98107817b0f6cdf51adc5e84e75c39ee25d8b28 https://git.kernel.org/stable/c/479e297526aeb19c745eac5c1897f455f83dc5f8 https://git.kernel.org/stable/c/b09a45601094c7f4ec4db8090b825fa61e169d93