{"id":"CVE-2026-139405","aliases":["CVE-2026-139405"],"related":[],"kind":"vulnerability","state":"published","title":"thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal/drivers/ti-soc-thermal: Cancel pending alert work on remove\n\nOn a threshold crossing, the talert IRQ handler calls\nti_thermal_report_sensor_temperature(), which queues the work embedded\nin the sensor's ti_thermal_data on the system workqueue. Nothing ever\ncancels or flushes that work.\n\nti_bandgap_remove() frees the talert IRQ last. free_irq() waits for a\nrunning handler, but not for the work the handler has queued. When\nremove returns, devres unregisters and frees the thermal zones and then\nfrees the devm-allocated ti_thermal_data, so a work item that is still\npending runs ti_thermal_work() on freed memory:\n\n\tti_thermal_work()\n\t  data = container_of(work, struct ti_thermal_data, thermal_wq);\n\t  thermal_zone_device_update(data->ti_thermal, ...);\n\nFree the talert IRQ before removing the sensors, so that no new work\ncan be queued, and cancel the work in ti_thermal_remove_sensor().\n\nThis needs an OMAP4460/4470 or OMAP5 SoC (DRA7 has TALERT but no\n->report_temperature, so it never queues the work), a threshold crossing\njust before the driver is unbound or unloaded, and the work still\npending when devres frees the data.\n\nFound by static analysis tool CodeQL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal/drivers/ti-soc-thermal: Cancel pending alert work on remove\n\nOn a threshold crossing, the talert IRQ handler calls\nti_thermal_report_sensor_temperature(), which queues the work embedded\nin the sensor's ti_thermal_data on the system workqueue. Nothing ever\ncancels or flushes that work.\n\nti_bandgap_remove() frees the talert IRQ last. free_irq() waits for a\nrunning handler, but not for the work the handler has queued. When\nremove returns, devres unregisters and frees the thermal zones and then\nfrees the devm-allocated ti_thermal_data, so a work item that is still\npending runs ti_thermal_work() on freed memory:\n\n\tti_thermal_work()\n\t  data = container_of(work, struct ti_thermal_data, thermal_wq);\n\t  thermal_zone_device_update(data->ti_thermal, ...);\n\nFree the talert IRQ before removing the sensors, so that no new work\ncan be queued, and cancel the work in ti_thermal_remove_sensor().\n\nThis needs an OMAP4460/4470 or OMAP5 SoC (DRA7 has TALERT but no\n->report_temperature, so it never queues the work), a threshold crossing\njust before the driver is unbound or unloaded, and the work still\npending when devres frees the data.\n\nFound by static analysis tool CodeQL.","source":"cvelist"}],"published":"2026-11-30T13:34:27.168Z","modified":"2026-11-30T14:19:08.950Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"c6bf7c8c3ff447a23c9ca70496e23bbee8021ff5","status":"affected"},{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"178e078eee6f99a771683321607afc1e8452e724","status":"affected"},{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"da057b9533721fdeaae30772fdf6a8d8b01d6870","status":"affected"},{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"4183df28a3564878457f7bc9f35b5fc9fa4fe28a","status":"affected"},{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"992585e3729ac54b882dcecc38b34b1060a5b386","status":"affected"},{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"0888e4e235f281bedb7c1c7c5a27a0bf0064b6f7","status":"affected"},{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"9d8d1431ca2bf32658a7494770f6bfb2e478ee98","status":"affected"},{"type":"git","introduced":"445eaf871bf94eb496b9b610e35b9e8c8830219f","fixed":"aaa6c8dec49339710f9fd2a2af5646cf4111dbd4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.6","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c6bf7c8c3ff447a23c9ca70496e23bbee8021ff5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/178e078eee6f99a771683321607afc1e8452e724","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da057b9533721fdeaae30772fdf6a8d8b01d6870","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4183df28a3564878457f7bc9f35b5fc9fa4fe28a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/992585e3729ac54b882dcecc38b34b1060a5b386","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0888e4e235f281bedb7c1c7c5a27a0bf0064b6f7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d8d1431ca2bf32658a7494770f6bfb2e478ee98","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aaa6c8dec49339710f9fd2a2af5646cf4111dbd4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139405","url":"https://www.cve.org/CVERecord?id=CVE-2026-139405","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:27.168Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139405","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139405","licence":"Public domain","modified":"2026-11-30T14:19:08.950Z"}],"updatedAt":"2026-11-30T14:32:54.850Z","epss":{"score":0.00211,"percentile":0.12003,"date":"2026-12-01T12:00:22.000Z"}}