{"id":"CVE-2026-93142","summary":"thermal/drivers/rcar: Fix error checking in probe()","details":"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-\u003ezone\".\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-\u003ezone to an error pointer to preserve the error code.\n3. Set priv-\u003ezone 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.","modified":"2026-09-18T03:47:26.932838769Z","published":"2026-09-17T16:11:41.430Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93142.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35bf61798e7d4abf39667d98f298f793b3dd9bbe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/623349a18d4c6e6add7876553c0cb6947c8d92e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/810875c5996f731961fc5ee1bd24e711f2e8fe78"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a85bcd0c7ef66e3404b3c99e5589c5ea622a757e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d67607e7749527850619a10d3ed033b02dcea516"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd04ad1cdabcad51e34b74b4e91b9aeb7180d05d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93142.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93142"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bbcf90c0646ac797700269fa6645a6a46466c79f"},{"fixed":"a85bcd0c7ef66e3404b3c99e5589c5ea622a757e"},{"fixed":"810875c5996f731961fc5ee1bd24e711f2e8fe78"},{"fixed":"623349a18d4c6e6add7876553c0cb6947c8d92e6"},{"fixed":"35bf61798e7d4abf39667d98f298f793b3dd9bbe"},{"fixed":"d67607e7749527850619a10d3ed033b02dcea516"},{"fixed":"dd04ad1cdabcad51e34b74b4e91b9aeb7180d05d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93142.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.9.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.52"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93142.json"}}],"schema_version":"1.9.0"}