Back

MEDIUM

thermal: int340x: Add NULL check for adev

Published Apr 16, 2025

Description

Not all devices have an ACPI companion fwnode, so adev might be NULL. This is similar to the commit cd2fd6eab480 ("platform/x86: int3472: Check for adev == NULL").

Add a check for adev not being set and return -ENODEV in that case to avoid a possible NULL pointer deref in int3402_thermal_probe().

Note, under the same directory, int3400_thermal_probe() has such a check.

[ rjw: Subject edit, added Fixes: ]

Affected products

Remediation

No remediation recorded yet.

References (18)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Apr 16, 2025
Updated Sep 8, 2026
Reserved Jan 11, 2025
CISA Vulnrichment
Updated Oct 1, 2025
NVD
Status Modified
Modified Jul 14, 2026
Red Hat
Severity Moderate
Public date Apr 16, 2025
ENISA EUVD
Assigner Linux
Published Apr 16, 2025
Updated Sep 8, 2026
Exploited since n/a
EUVD-2025-11159