CVE-2026-74604 PUBLISHED

Revert "thermal/drivers/hwmon: Cleanup coding style a bit"

Assigner: Linux
Reserved: 15.08.2026 Published: 22.08.2026 Updated: 22.08.2026

In the Linux kernel, the following vulnerability has been resolved:

Revert "thermal/drivers/hwmon: Cleanup coding style a bit"

Revert commit 030a48b0f6ce ("thermal/drivers/hwmon: Cleanup coding style a bit") that introduced a use-after-free into the error path of thermal_add_hwmon_sysfs() by removing a valid check from it.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 2434f4765da8ccd7ef31be88b86f1bfa2e95be11 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 999e573212d5f1debf073c68be35e55bbfad12fc (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 8d34019d1413629a434a7e8d9f91c76d256196a0 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 6b446d335ba16e93a266dd77adf1ba51abc82df4 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to ff8da20b6f47c48d46e47f93f7a59e2d56ee9107 (excl.)
  • affected from 0 to 5.15.216 (excl.)
  • affected from 0 to 6.1.183 (excl.)
  • affected from 0 to 6.6.152 (excl.)
  • affected from 0 to 6.12.104 (excl.)
  • affected from 0 to 6.18.45 (excl.)
  • affected from 0 to 7.1.9 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 5.15.216 to 5.15.* (incl.)
  • unaffected from 6.1.183 to 6.1.* (incl.)
  • unaffected from 6.6.152 to 6.6.* (incl.)
  • unaffected from 6.12.104 to 6.12.* (incl.)
  • unaffected from 6.18.45 to 6.18.* (incl.)
  • unaffected from 7.1.9 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References