CVE-2023-53997
7.8high
thermal: of: fix double-free on unregistration
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3d439b1a2ad36c8b4ea151c8de25309d60d17407 before adce49089412a9ae28f5c666e0bb12fbcd86b3f7, from 3d439b1a2ad36c8b4ea151c8de25309d60d17407 before ac4436a5b20e0ef1f608a9ef46c08d5d142f8da6, 6.4 Not affected: before 6.4, from 6.4.8 up to 6.4.*, from 6.5 up to * | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-53997 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2023-53997 changed 2026-08-04 | Public domain |