# CVE-2023-52473: thermal: core: Fix NULL pointer dereference in zone registration error path

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-02-25T08:16:35.551Z
- Modified: 2026-06-17T06:42:48.127Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

thermal: core: Fix NULL pointer dereference in zone registration error path

If device_register() in thermal_zone_device_register_with_trips()
returns an error, the tz variable is set to NULL and subsequently
dereferenced in kfree(tz->tzp).

Commit adc8749b150c ("thermal/drivers/core: Use put_device() if
device_register() fails") added the tz = NULL assignment in question to
avoid a possible double-free after dropping the reference to the zone
device.  However, after commit 4649620d9404 ("thermal: core: Make
thermal_zone_device_unregister() return after freeing the zone"), that
assignment has become redundant, because dropping the reference to the
zone device does not cause the zone object to be freed any more.

Drop it to address the NULL pointer dereference.

(As written by CVE List.)

## Affected

- Linux Linux: from 3d439b1a2ad36c8b4ea151c8de25309d60d17407 before 335176dd8ebaca6493807dceea33c478305667fa; from 3d439b1a2ad36c8b4ea151c8de25309d60d17407 before 02871710b93058eb1249d5847c0b2d1c2c3c98ae; from 3d439b1a2ad36c8b4ea151c8de25309d60d17407 before 04e6ccfc93c5a1aa1d75a537cf27e418895e20ea; 6.4 (not affected: before 6.4; from 6.6.14 up to 6.6.*; from 6.7.2 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.4.0 before 6.6.14; from 6.7.0 before 6.7.2

## References

- <https://git.kernel.org/stable/c/335176dd8ebaca6493807dceea33c478305667fa> (patch)
- <https://git.kernel.org/stable/c/02871710b93058eb1249d5847c0b2d1c2c3c98ae> (patch)
- <https://git.kernel.org/stable/c/04e6ccfc93c5a1aa1d75a537cf27e418895e20ea> (patch)

## Sources

- CVE List: [CVE-2023-52473](https://www.cve.org/CVERecord?id=CVE-2023-52473), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52473](https://nvd.nist.gov/vuln/detail/CVE-2023-52473), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52473 · Whole record: https://cve.day/CVE-2023-52473.json · Rebuilt by cve.day 2026-11-25T22:58:33.078Z
