CVE-2026-93142 in Linux
摘要
由 VulDB • 2026-09-17
在 Linux 内核中,已修复以下漏洞:
thermal/drivers/rcar: 修复 probe() 中的错误检查逻辑
该代码在未检查 thermal_zone_device_register_with_trips() 是否失败的情况下,意外调用了 thermal_zone_device_enable()。将调用移至稍后位置执行,以避免对 "priv->zone" 进行错误指针解引用(error pointer dereference)。
驱动程序的行为取决于我们是否使用 OF (Open Firmware) thermal:如果使用 OF thermal,则使用 thermal_add_hwmon_sysfs();否则调用 thermal_zone_device_enable()。我们可以为这两种情况共享相同的失败检查逻辑。
此外,移动 thermal_zone_device_enable() 的调用也使代码更加简洁。原始代码使用了三步清理过程: 1. 调用 thermal_zone_device_unregister() 进行清理。 2. 将 priv->zone 设置为错误指针以保留错误码。 3. 将 priv->zone 设置为 NULL,以避免在 rcar_thermal_remove() 函数中再次调用 thermal_zone_device_unregister()。
现在我们可以直接跳转到 error_unregister 标签,由 rcar_thermal_remove() 正确处理清理工作。
If you want to get best quality of vulnerability data, you may have to visit VulDB.