CVE-2023-53012

Source
https://cve.org/CVERecord?id=CVE-2023-53012
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53012.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53012
Downstream
Published
2025-03-27T16:43:41.693Z
Modified
2026-05-15T11:54:21.348654843Z
Summary
thermal: core: call put_device() only after device_register() fails
Details

In the Linux kernel, the following vulnerability has been resolved:

thermal: core: call putdevice() only after deviceregister() fails

putdevice() shouldn't be called before a prior call to deviceregister(). _thermalcoolingdeviceregister() doesn't follow that properly and needs fixing. Also thermalcoolingdevicedestroysysfs() is getting called unnecessarily on few error paths.

Fix all this by placing the calls at the right place.

Based on initial work done by Caleb Connolly.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53012.json"
}
References

Affected packages