{"id":"CVE-2026-93142","published":"2026-09-17T16:11:41Z","modified":"2026-10-19T09:06:14Z","title":"thermal/drivers/rcar: Fix error checking in probe()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal/drivers/rcar: Fix error checking in probe()\n\nThis code accidentally calls thermal_zone_device_enable() before checking\nwhether thermal_zone_device_register_with_trips() failed.  Move the call\nuntil later to avoid an error pointer dereference of \"priv->zone\".\n\nThe driver works differently depending on if we are using OF thermal or\nnot.  We use thermal_add_hwmon_sysfs() if we are using OF thermal and\ncall thermal_zone_device_enable() if not.  We can share same error check\nfor if either of these fail.\n\nMoving the thermal_zone_device_enable() call is a bit cleaner as well.\nThe original code used a three step process to cleanup:\n1. Call thermal_zone_device_unregister() to cleanup.\n2. Set priv->zone to an error pointer to preserve the error code.\n3. Set priv->zone to NULL to avoid a second call to\n   thermal_zone_device_unregister() in the rcar_thermal_remove()\n   function.\n\nNow we can just do a direct goto error_unregister and rcar_thermal_remove()\nhandles the cleanup properly.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00215,"percentile":0.11724,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a85bcd0c7ef66e3404b3c99e5589c5ea622a757e","tags":[]},{"url":"https://git.kernel.org/stable/c/810875c5996f731961fc5ee1bd24e711f2e8fe78","tags":[]},{"url":"https://git.kernel.org/stable/c/623349a18d4c6e6add7876553c0cb6947c8d92e6","tags":[]},{"url":"https://git.kernel.org/stable/c/35bf61798e7d4abf39667d98f298f793b3dd9bbe","tags":[]},{"url":"https://git.kernel.org/stable/c/d67607e7749527850619a10d3ed033b02dcea516","tags":[]},{"url":"https://git.kernel.org/stable/c/dd04ad1cdabcad51e34b74b4e91b9aeb7180d05d","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.34}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bbcf90c0646ac797700269fa6645a6a46466c79f, < a85bcd0c7ef66e3404b3c99e5589c5ea622a757e",">= bbcf90c0646ac797700269fa6645a6a46466c79f, < 810875c5996f731961fc5ee1bd24e711f2e8fe78",">= bbcf90c0646ac797700269fa6645a6a46466c79f, < 623349a18d4c6e6add7876553c0cb6947c8d92e6",">= bbcf90c0646ac797700269fa6645a6a46466c79f, < 35bf61798e7d4abf39667d98f298f793b3dd9bbe",">= bbcf90c0646ac797700269fa6645a6a46466c79f, < d67607e7749527850619a10d3ed033b02dcea516",">= bbcf90c0646ac797700269fa6645a6a46466c79f, < dd04ad1cdabcad51e34b74b4e91b9aeb7180d05d"]},{"vendor":"Linux","product":"Linux","versions":["5.9"]}],"euvd":{"id":"EUVD-2026-82250","exploited":false,"provenance":"source"}}