Bug 2355531 (CVE-2023-53012) - CVE-2023-53012 kernel: thermal: core: call put_device() only after device_register() fails
Summary: CVE-2023-53012 kernel: thermal: core: call put_device() only after device_reg...
Keywords:
Status: NEW
Alias: CVE-2023-53012
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-03-27 17:05 UTC by OSIDB Bzimport
Modified: 2025-03-27 19:10 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-27 17:05:46 UTC
In the Linux kernel, the following vulnerability has been resolved:

thermal: core: call put_device() only after device_register() fails

put_device() shouldn't be called before a prior call to
device_register(). __thermal_cooling_device_register() doesn't follow
that properly and needs fixing. Also
thermal_cooling_device_destroy_sysfs() is getting called unnecessarily
on few error paths.

Fix all this by placing the calls at the right place.

Based on initial work done by Caleb Connolly.


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