CVE-2023-52473
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
26/02/2024
Last modified:
17/04/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
thermal: core: Fix NULL pointer dereference in zone registration error path<br />
<br />
If device_register() in thermal_zone_device_register_with_trips()<br />
returns an error, the tz variable is set to NULL and subsequently<br />
dereferenced in kfree(tz->tzp).<br />
<br />
Commit adc8749b150c ("thermal/drivers/core: Use put_device() if<br />
device_register() fails") added the tz = NULL assignment in question to<br />
avoid a possible double-free after dropping the reference to the zone<br />
device. However, after commit 4649620d9404 ("thermal: core: Make<br />
thermal_zone_device_unregister() return after freeing the zone"), that<br />
assignment has become redundant, because dropping the reference to the<br />
zone device does not cause the zone object to be freed any more.<br />
<br />
Drop it to address the NULL pointer dereference.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.4.0 (including) | 6.6.14 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7.0 (including) | 6.7.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



