CVE-2026-143455: thermal: gov_power_allocator: Fix NULL pointer dereference in update_tz()
In the Linux kernel, the following vulnerability has been resolved:
thermal: govpowerallocator: Fix NULL pointer dereference in updatetz()
powerallocatorupdatetz() unconditionally derives the trip descriptor of params->tripmax as below, const struct thermaltripdesc td = triptotripdesc(params->tripmax); and then walks td->thermalinstances. However, params->tripmax is allowed to be NULL and in that case the list walk dereferences a bogus pointer derived from NULL which oops the kernel.
getgovernortrips() picks tripswitchon and tripmax out of the trip table of the zone. When the zone has neither a passive nor an active trip point, lastactive is NULL and params->tripmax is left NULL. This is an explicitly supported configuration, as documented in the function getgovernortrips() as below, If there are no passive or active trip points, then the governor won't do anything. In fact, its throttle function won't be called at all.
Return early from powerallocatorupdatetz() when params->tripmax is NULL and only compute the trip descriptor after that check. There is nothing to update in that case anyway, with no tripmax and there are no thermal instances for the governor to account for, numactors stays zero and totalweight is irrelevant.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel, make power_allocator_update_tz() return early when params->trip_max is NULL, and only compute the trip descriptor after that check.
Event History
Frequently Asked Questions
Which systems are affected by this condition?
Systems using the Linux thermal power_allocator governor can be affected when a thermal zone has neither passive nor active trip points. This is an explicitly supported thermal-zone configuration.
What triggers the kernel fault?
The fault occurs when power_allocator_update_tz() handles a zone for which trip_max is NULL. The function derives and walks a trip descriptor from that NULL value, causing a kernel oops.
Is this configuration expected to perform thermal throttling?
No. When there are no passive or active trip points, the governor is documented not to do anything, and its throttle function is not called.
What is the remediation described by the fix?
The fix returns early from power_allocator_update_tz() when trip_max is NULL. It computes the trip descriptor only after confirming that trip_max is present.