CVE-2026-139405

Source
https://cve.org/CVERecord?id=CVE-2026-139405
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139405.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139405
Downstream
Published
2026-11-30T13:34:27Z
Modified
2026-11-30T15:02:28Z
Summary
thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139405.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
445eaf871bf94eb496b9b610e35b9e8c8830219f
Fixed
c6bf7c8c3ff447a23c9ca70496e23bbee8021ff5
Fixed
178e078eee6f99a771683321607afc1e8452e724
Fixed
da057b9533721fdeaae30772fdf6a8d8b01d6870
Fixed
4183df28a3564878457f7bc9f35b5fc9fa4fe28a
Fixed
992585e3729ac54b882dcecc38b34b1060a5b386
Fixed
0888e4e235f281bedb7c1c7c5a27a0bf0064b6f7
Fixed
9d8d1431ca2bf32658a7494770f6bfb2e478ee98
Fixed
aaa6c8dec49339710f9fd2a2af5646cf4111dbd4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139405.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.6.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139405.json"