CVE-2023-53997
JSON

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 packageVersionsReported by
Linux Linuxfrom 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

SourceRecordLicence
CVE ListCVE-2023-53997 changed 2026-08-05CVE Terms of Use
NVDCVE-2023-53997 changed 2026-08-04Public domain