Bug 2424939 (CVE-2023-53997) - CVE-2023-53997 kernel: thermal: of: fix double-free on unregistration
Summary: CVE-2023-53997 kernel: thermal: of: fix double-free on unregistration
Keywords:
Status: NEW
Alias: CVE-2023-53997
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-24 12:02 UTC by OSIDB Bzimport
Modified: 2026-04-01 17:58 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-24 12:02:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.