# CVE-2023-53012: thermal: core: call put\_device() only after device\_register() fails

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-03-27T16:43:41.693Z
- **Modified:** 2026-11-05T21:17:07.080Z

## Who should check

- Anyone running Linux \>= 108a6f91e2766a6d9142b1f2d90c07ac547eae7e, \< a7d736cc3c6cb0d7498bbfb56515d414e35e9510; \>= 80bb3b901abe6560620505e5c734d140c4f73a07, \< 2846a7412f6246fd5171f51011bf76dfebcec0ee; \>= c408b3d1d9bbc7de5fb0304fea424ef2539da616, \< 6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8; 5139cbc0c6e4bf2fcffc9a7ed4350bf6985bc561; c4c435d3637b5d0abaa6447c7366c3674364968a; e0d8b51bbe84d6a98c162e06344de2d773d9e722; \>= 6.0.16, \< 6.1
- Anyone running Linux (versions: see the vendor advisory)

## 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 and fixed versions

- Linux: \>= 108a6f91e2766a6d9142b1f2d90c07ac547eae7e, \< a7d736cc3c6cb0d7498bbfb56515d414e35e9510; \>= 80bb3b901abe6560620505e5c734d140c4f73a07, \< 2846a7412f6246fd5171f51011bf76dfebcec0ee; \>= c408b3d1d9bbc7de5fb0304fea424ef2539da616, \< 6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8; 5139cbc0c6e4bf2fcffc9a7ed4350bf6985bc561; c4c435d3637b5d0abaa6447c7366c3674364968a; e0d8b51bbe84d6a98c162e06344de2d773d9e722; \>= 6.0.16, \< 6.1 (cvelist)
- Linux: see vendor advisory (cvelist)

## Mitigation

- Upgrade Linux to 6.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53012. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53012.md
Affected: Linux >= 108a6f91e2766a6d9142b1f2d90c07ac547eae7e, < a7d736cc3c6cb0d7498bbfb56515d414e35e9510; >= 80bb3b901abe6560620505e5c734d140c4f73a07, < 2846a7412f6246fd5171f51011bf76dfebcec0ee; >= c408b3d1d9bbc7de5fb0304fea424ef2539da616, < 6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8; 5139cbc0c6e4bf2fcffc9a7ed4…
Fixed in: Linux 2846a7412f6246fd5171f51011bf76dfebcec0ee, Linux 6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8, Linux 6.1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53012 being exploited?

There is no confirmed exploitation: CVE-2023-53012 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53012?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53012?

Linux \>= 108a6f91e2766a6d9142b1f2d90c07ac547eae7e, \< a7d736cc3c6cb0d7498bbfb56515d414e35e9510; \>= 80bb3b901abe6560620505e5c734d140c4f73a07, \< 2846a7412f6246fd5171f51011bf76dfebcec0ee; \>= c408b3d1d9bbc7de5fb0304fea424ef2539da616, \< 6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8; 5139cbc0c6e4bf2fcffc9a7ed4350bf6985bc561; c4c435d3637b5d0abaa6447c7366c3674364968a; e0d8b51bbe84d6a98c162e06344de2d773d9e722; \>= 6.0.16, \< 6.1; Linux.

### Is there a fix for CVE-2023-53012?

Yes. Fixed in Linux 2846a7412f6246fd5171f51011bf76dfebcec0ee, Linux 6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8, Linux 6.1. Upgrade Linux to 6.1 or later.

### How do I check if I'm affected by CVE-2023-53012?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a7d736cc3c6cb0d7498bbfb56515d414e35e9510>
- patch: <https://git.kernel.org/stable/c/2846a7412f6246fd5171f51011bf76dfebcec0ee>
- patch: <https://git.kernel.org/stable/c/6c54b7bc8a31ce0f7cc7f8deef05067df414f1d8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53012>

HTML: <https://flawdb.com/CVE-2023-53012> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53012>
