CVE-2026-139405

thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove

On a threshold crossing, the talert IRQ handler calls
ti_thermal_report_sensor_temperature(), which queues the work embedded
in the sensor's ti_thermal_data on the system workqueue. Nothing ever
cancels or flushes that work.

ti_bandgap_remove() frees the talert IRQ last. free_irq() waits for a
running handler, but not for the work the handler has queued. When
remove returns, devres unregisters and frees the thermal zones and then
frees the devm-allocated ti_thermal_data, so a work item that is still
pending runs ti_thermal_work() on freed memory:

ti_thermal_work()
data = container_of(work, struct ti_thermal_data, thermal_wq);
thermal_zone_device_update(data->ti_thermal, ...);

Free the talert IRQ before removing the sensors, so that no new work
can be queued, and cancel the work in ti_thermal_remove_sensor().

This needs an OMAP4460/4470 or OMAP5 SoC (DRA7 has TALERT but no
->report_temperature, so it never queues the work), a threshold crossing
just before the driver is unbound or unloaded, and the work still
pending when devres frees the data.

Found by static analysis tool CodeQL.

Analysis

AI-generated

Technical impact

The TI SOC thermal driver for OMAP5‑based SoCs queues a work item when a temperature threshold is crossed. The queued work is never cancelled or flushed when the driver is removed, and the removal routine frees the memory that the work item references. The result is a classic use‑after‑free that can cause a kernel panic or, if an attacker can trigger the removal under the right conditions, could lead to arbitrary code execution.

Affected Systems

The flaw affects the Linux kernel on OMAP4460/4470 and other OMAP5‑based SoCs that support the talert interrupt. Devices running those SoCs with the default ti‑soc‑thermal driver are vulnerable when a threshold event occurs immediately before the driver is unbound or the module is unloaded. The vulnerability does not apply to DRA7 boards because the corresponding interrupt handler does not queue work.

Risk and Exploitability

The CVSS score is not provided and the EPSS score is unavailable, so an exact exploitation probability cannot be derived. The vulnerability is not listed in the CISA KEV catalog, indicating that no widespread exploitation has been documented. The likely attack vector requires an attacker to trigger a threshold crossing just before device removal, which is a relatively narrow window and would generally require local or privileged access to control the driver lifecycle. Consequently, the risk is considered moderate, with exploitation unlikely in a typical environment but still significant enough to justify remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the ti‑soc‑thermal patch which cancels pending work and frees the talert IRQ before the sensor is removed
  • If the patch is not available, consider disabling the talert interrupt or preventing the driver from being unloaded while a threshold event is possible, such as by disabling thermal sensing during system updates or reboot operations
  • Ensure that system firmware or boot scripts do not unload the ti‑soc‑thermal module during normal operation or maintenance windows, and that thermal sensor removal is not triggered during active threshold monitoring

Generated by OpenCVE AI on December 1, 2026 at 07:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove On a threshold crossing, the talert IRQ handler calls ti_thermal_report_sensor_temperature(), which queues the work embedded in the sensor's ti_thermal_data on the system workqueue. Nothing ever cancels or flushes that work. ti_bandgap_remove() frees the talert IRQ last. free_irq() waits for a running handler, but not for the work the handler has queued. When remove returns, devres unregisters and frees the thermal zones and then frees the devm-allocated ti_thermal_data, so a work item that is still pending runs ti_thermal_work() on freed memory: ti_thermal_work() data = container_of(work, struct ti_thermal_data, thermal_wq); thermal_zone_device_update(data->ti_thermal, ...); Free the talert IRQ before removing the sensors, so that no new work can be queued, and cancel the work in ti_thermal_remove_sensor(). This needs an OMAP4460/4470 or OMAP5 SoC (DRA7 has TALERT but no ->report_temperature, so it never queues the work), a threshold crossing just before the driver is unbound or unloaded, and the work still pending when devres frees the data. Found by static analysis tool CodeQL.
Title thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM