What’s Vulnerable › Vulnerabilities
CVE-2023-53997: thermal: of: fix double-free on unregistration
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-12-24 · updated 2026-08-04
Description
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"), thermal_zone_device_register() allocates a copy of the tzp argument and frees it when unregistering, so thermal_of_zone_register() now ends up leaking its original tzp and double-freeing the tzp copy. Fix this by locating tzp on stack instead.
Affected products
- Linux kernel: 6.4 — fixed in 6.5
How to fix
Upgrade to a fixed version: Linux kernel 6.5. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/ac4436a5b20e0ef1f608a9ef46c08d5d142f8da6
- https://git.kernel.org/stable/c/adce49089412a9ae28f5c666e0bb12fbcd86b3f7
Get alerted when CVE-2023-53997 or the next vulnerability affects your stack