Vulnerability record
thermal: gov_power_allocator: Fix NULL pointer dereference in update_tz()
In the Linux kernel, the following vulnerability has been resolved:
thermal: gov_power_allocator: Fix NULL pointer dereference in update_tz()
power_allocator_update_tz() unconditionally derives the trip descriptor of params->trip_max as below, const struct thermal_trip_desc *td = trip_to_trip_desc(params->trip_max); and then walks td->thermal_instances. However, params->trip_max is allowed to be NULL and in that case the list walk dereferences a bogus pointer derived from NULL which oops the kernel.
get_governor_trips() picks trip_switch_on and trip_max out of the trip table of the zone.…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources