# CVE-2023-53997: thermal: of: fix double-free on unregistration

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-12-24T10:55:34.077Z
- Modified: 2026-08-05T09:16:34.123Z
- 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.

(As written by CVE List.)

## Affected

- 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 *)

## References

- <https://git.kernel.org/stable/c/adce49089412a9ae28f5c666e0bb12fbcd86b3f7>
- <https://git.kernel.org/stable/c/ac4436a5b20e0ef1f608a9ef46c08d5d142f8da6>

## Sources

- CVE List: [CVE-2023-53997](https://www.cve.org/CVERecord?id=CVE-2023-53997), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-53997](https://nvd.nist.gov/vuln/detail/CVE-2023-53997), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-53997 · Whole record: https://cve.day/CVE-2023-53997.json · Rebuilt by cve.day 2026-11-25T22:58:35.135Z
