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 0FDED3BBFB1 for ; Tue, 6 Oct 2026 08:47:05 +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=1791276427; cv=none; b=mZpy+y4aG3sGzbRcV8Z5mxdDS2CQ/BEp2ohAxowQltl4mo1ASyybN4GRA7jHIh2Xqx/6+bIlTKqEw0X5H9PmRquX8MJ5AMqR6jVyTv9KaC0aJcAWg1q0k8fxzFtHGzBVhEwrx4kmZUyK3IXyqn13Ee41fpQYOFaPRt6MYn2WuQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276427; c=relaxed/simple; bh=+kGr6oJ91kPtzK6X2U0x8+hao8neu/6/DamZbMkGl/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J6w59vzSkidB3MrMfKOec9tTjr6NRNkvMxawuE+ifx+APDLv+rSJgPqX9VFzuKzmqZQCqL6TEPJTEn5gfasqHjxUuW6yXVj/JfMSRSfArOgmZMwjh6o28efRSBWAi92oG0V17uBP+MAS+f/ZBaSvAX4SAzlFgjBgTZabz7Mrnkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Hm4CBWAu; 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="Hm4CBWAu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 057FB1F00893; Tue, 6 Oct 2026 08:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276425; bh=cBY0DC1kDtCHjR07Q5UTjYNmSsbMziqnBgwvWA8uDEs=; h=From:To:Cc:Subject:Date:Reply-To; b=Hm4CBWAuY3nJC9FA+SgS5uimlS8JwASkdnqM4cvvHe+P3z0XYNvSO9LWdW3b6cv9W 6UfNoQoIZHW5f4EKoF7jN1TiT/9zLWdghGEQ0JPI1lHLLu3/RvzX85RF7Oj9CEZNe4 +rtq/qVDSaXJr1Y0S2R9l+6Ulx4VS4oKDRCHULcc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98197: hwmon: (w83791d) remove fan/pwm 4-5 sysfs group on remove Date: Tue, 6 Oct 2026 10:44:58 +0200 Message-ID: <2026100636-CVE-2026-98197-6c8c@gregkh> X-Mailer: git-send-email 2.56.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=3860; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7U618f6y1YmBVL48zduZnAzNpQhVZE1TB8Q2PKPgdBI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnxZYdy2/KqRtYYUv2P93TiTrzND+pgCFzZt/K9l6 bNNx/p2RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyE/xrDgvaypZbHfq05uMqU RcxuhW/n4VuyfAzz67dF5UlWdxVcDH7cJPr1eOmMKcFnAQ== 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: (w83791d) remove fan/pwm 4-5 sysfs group on remove When the fan/pwm 4-5 pins are not used as GPIO, w83791d_probe() creates the w83791d_group_fanpwm45 sysfs group on the I2C client device. The probe error path removes this group when a later initialization step fails, but the normal remove path only removes w83791d_group. As a result, the optional fan/pwm 4-5 sysfs files can remain after the driver is unbound. The callbacks associated with these files access the driver data, which is devm allocated and released after driver unbind. Leaving the sysfs files behind can therefore result in accesses to stale driver data. Remove w83791d_group_fanpwm45 during normal teardown as well. This issue was found by manual code inspection. The Linux kernel CVE team has assigned CVE-2026-98197 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 5.10.271 with commit 081e3a78453635fb370b1712809d2af29e60b4c5 Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 5.15.222 with commit b1d419eb3bc41245c3d3d99dfe1a7b6c45989586 Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 6.1.189 with commit 2ccf6c512290a288a2d4d7f076430dfb0c6ee476 Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 6.6.158 with commit f6e2ab72f32d16d71a2549c7ea062dd209f71670 Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 6.12.112 with commit 2dd37d00f1f1af8e02ffa70ee573c10fd1a76864 Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 6.18.54 with commit 2c381e6e0f033f2df13bd64905e7232c42f49009 Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 7.2.8 with commit 583e04e88e75b8d57304015d83c38e82a9531600 Issue introduced in 2.6.28 with commit 6e1ecd9b8f1358ed4d099f0c54434240dc40debe and fixed in 7.3-rc4 with commit 0ff9c7775e51ac6d47b1bb5c46f06b1434fe58a8 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-98197 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/w83791d.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/081e3a78453635fb370b1712809d2af29e60b4c5 https://git.kernel.org/stable/c/b1d419eb3bc41245c3d3d99dfe1a7b6c45989586 https://git.kernel.org/stable/c/2ccf6c512290a288a2d4d7f076430dfb0c6ee476 https://git.kernel.org/stable/c/f6e2ab72f32d16d71a2549c7ea062dd209f71670 https://git.kernel.org/stable/c/2dd37d00f1f1af8e02ffa70ee573c10fd1a76864 https://git.kernel.org/stable/c/2c381e6e0f033f2df13bd64905e7232c42f49009 https://git.kernel.org/stable/c/583e04e88e75b8d57304015d83c38e82a9531600 https://git.kernel.org/stable/c/0ff9c7775e51ac6d47b1bb5c46f06b1434fe58a8