CVE-2023-53012

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

published March 27, 2025

CVSS
—
EPSS
0%
Percentile
9.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00203 · 9.8th percentile
Published
2025-03-27T16:43Z
EPSS history
Timeline
  • 27 MAR 16:43Z
    thermal: core: call put_device() only after device_register() fails
    cvelistv5