Linux
Revert "thermal/drivers/hwmon: Cleanup coding style a bit"
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 030a48b0f6ce393d78b8d33debb1e2043b8cc156, < 2434f4765da8ccd7ef31be88b86f1bfa2e95be11
- >= 030a48b0f6ce393d78b8d33debb1e2043b8cc156, < b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366
- >= 030a48b0f6ce393d78b8d33debb1e2043b8cc156, < 999e573212d5f1debf073c68be35e55bbfad12fc
- >= 030a48b0f6ce393d78b8d33debb1e2043b8cc156, < 6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a
- >= 030a48b0f6ce393d78b8d33debb1e2043b8cc156, < 8d34019d1413629a434a7e8d9f91c76d256196a0
- >= 030a48b0f6ce393d78b8d33debb1e2043b8cc156, < 6b446d335ba16e93a266dd77adf1ba51abc82df4
- >= 030a48b0f6ce393d78b8d33debb1e2043b8cc156, < ff8da20b6f47c48d46e47f93f7a59e2d56ee9107
Fixed in 2434f4765da8ccd7ef31be88b86f1bfa2e95be11, b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366, 999e573212d5f1debf073c68be35e55bbfad12fc, 6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a, 8d34019d1413629a434a7e8d9f91c76d256196a0, 6b446d335ba16e93a266dd77adf1ba51abc82df4, ff8da20b6f47c48d46e47f93f7a59e2d56ee9107
- 5.11
Fixed in 0, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, 7.2
Mitigation
Upgrade Linux to 2434f4765da8ccd7ef31be88b86f1bfa2e95be11 or b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366 or 999e573212d5f1debf073c68be35e55bbfad12fc or 6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a or 8d34019d1413629a434a7e8d9f91c76d256196a0 or 6b446d335ba16e93a266dd77adf1ba51abc82df4 or ff8da20b6f47c48d46e47f93f7a59e2d56ee9107 or later.
Upgrade Linux to 0 or 5.15.216 or 6.1.183 or 6.6.152 or 6.12.104 or 6.18.45 or 7.1.9 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.