CVE-2026-98197 PUBLISHED

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

Assigner: Linux
Reserved: 25.09.2026 Published: 06.10.2026 Updated: 06.10.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to 081e3a78453635fb370b1712809d2af29e60b4c5 (excl.)
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to b1d419eb3bc41245c3d3d99dfe1a7b6c45989586 (excl.)
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to 2ccf6c512290a288a2d4d7f076430dfb0c6ee476 (excl.)
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to f6e2ab72f32d16d71a2549c7ea062dd209f71670 (excl.)
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to 2dd37d00f1f1af8e02ffa70ee573c10fd1a76864 (excl.)
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to 2c381e6e0f033f2df13bd64905e7232c42f49009 (excl.)
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to 583e04e88e75b8d57304015d83c38e82a9531600 (excl.)
  • affected from 6e1ecd9b8f1358ed4d099f0c54434240dc40debe to 0ff9c7775e51ac6d47b1bb5c46f06b1434fe58a8 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.28 is affected
  • unaffected from 0 to 2.6.28 (excl.)
  • unaffected from 5.10.271 to 5.10.* (incl.)
  • unaffected from 5.15.222 to 5.15.* (incl.)
  • unaffected from 6.1.189 to 6.1.* (incl.)
  • unaffected from 6.6.158 to 6.6.* (incl.)
  • unaffected from 6.12.112 to 6.12.* (incl.)
  • unaffected from 6.18.54 to 6.18.* (incl.)
  • unaffected from 7.2.8 to 7.2.* (incl.)
  • unaffected from 7.3-rc4 to * (incl.)

References