CyberRota Analysis
AI-GeneratedA use-after-free vulnerability exists in the Linux kernel's thermal subsystem, specifically in the `thermal_add_hwmon_sysfs()` function due to a coding style cleanup that inadvertently removed a critical validity check. This flaw could lead to potential memory corruption, impacting system stability and security. Linux system administrators and developers should prioritize this issue to mitigate risks associated with system crashes or exploitation.
Original NVD Description
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.