CVE-2023-53997

Source
https://cve.org/CVERecord?id=CVE-2023-53997
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53997.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53997
Downstream
Related
Published
2025-12-24T10:55:34.077Z
Modified
2026-04-02T09:45:27.939654Z
Summary
thermal: of: fix double-free on unregistration
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53997.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3d439b1a2ad36c8b4ea151c8de25309d60d17407
Fixed
adce49089412a9ae28f5c666e0bb12fbcd86b3f7
Fixed
ac4436a5b20e0ef1f608a9ef46c08d5d142f8da6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53997.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.4.0
Fixed
6.4.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53997.json"