In the Linux kernel, the following vulnerability has been resolved:
thermal: of: fix double-free on unregistration
Since commit 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone parameters structure"), thermalzonedeviceregister() allocates a copy of the tzp argument and frees it when unregistering, so thermalofzoneregister() now ends up leaking its original tzp and double-freeing the tzp copy. Fix this by locating tzp on stack instead.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53997.json",
"cna_assigner": "Linux"
}