{"id":"CVE-2023-53012","summary":"thermal: core: call put_device() only after device_register() fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal: core: call put_device() only after device_register() fails\n\nput_device() shouldn't be called before a prior call to\ndevice_register(). __thermal_cooling_device_register() doesn't follow\nthat properly and needs fixing. Also\nthermal_cooling_device_destroy_sysfs() is getting called unnecessarily\non few error paths.\n\nFix all this by placing the calls at the right place.\n\nBased on initial work done by Caleb Connolly.","modified":"2026-05-15T11:54:21.348654843Z","published":"2025-03-27T16:43:41.693Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53012.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2846a7412f6246fd5171f51011bf76dfebcec0ee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a7d736cc3c6cb0d7498bbfb56515d414e35e9510"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53012.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53012"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"schema_version":"1.7.5"}