CVE-2023-53012

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

MEDIUM
5.5
CVSS Score
Published: March 27, 2025 at 04:43 PM UTC
Updated: June 17, 2026 at 06:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.0.165.15.86 ≤ v < 5.166.0.16 ≤ v < 6.16.1.2 ≤ v < 6.2108a6f91e2766a6d9142b1f2d90c07ac547eae7e5139cbc0c6e4bf2fcffc9a7ed4350bf6985bc5616.0.166.2 rc16.2 rc26.2 rc36.2 rc480bb3b901abe6560620505e5c734d140c4f73a07c408b3d1d9bbc7de5fb0304fea424ef2539da616c4c435d3637b5d0abaa6447c7366c3674364968ae0d8b51bbe84d6a98c162e06344de2d773d9e722
Vendor states this is fixed in 2846a7412f6246fd5171f51011bf76dfebcec0ee (fixed)
Vendor states this is fixed in 6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8 (fixed)
Vendor states this is fixed in a7d736cc3c6cb0d7498bbfb56515d414e35e9510 (fixed)
Affected range stops below 6.1, so it looks safe — our inference, not a vendor statement

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2846a7412f6246fd5171f51011bf76dfebcec0ee
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a7d736cc3c6cb0d7498bbfb56515d414e35e9510

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card