Skip to contentSkip to conversation

CVE-2026-98197: hwmon: (w83791d) remove fan/pwm 4-5 sysfs group on remove

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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