thermal: int340x: Add NULL check for adev
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 77e337c6e23e3b9d22e09ffec202a80f755a54c2 · < 953d28a4f459fcbde2d08f51aeca19d6b0f179f3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
thermal: int340x: Add NULL check for adev
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: ]
From the CVE record · Linux
The Linux kernel’s int340x thermal probe can dereference a NULL pointer when a device lacks an ACPI companion firmware node. This can cause a failure during probing; the input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running the Linux kernel should check affected versions with their vendor; no version range is provided.