{"id":"CVE-2026-139405","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:19:08.950","lastModified":"2026-11-30T14:19:08.950","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/thermal/ti-soc-thermal/ti-bandgap.c","drivers/thermal/ti-soc-thermal/ti-thermal-common.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"c6bf7c8c3ff447a23c9ca70496e23bbee8021ff5","versionType":"git","status":"affected"},{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"178e078eee6f99a771683321607afc1e8452e724","versionType":"git","status":"affected"},{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"da057b9533721fdeaae30772fdf6a8d8b01d6870","versionType":"git","status":"affected"},{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"4183df28a3564878457f7bc9f35b5fc9fa4fe28a","versionType":"git","status":"affected"},{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"992585e3729ac54b882dcecc38b34b1060a5b386","versionType":"git","status":"affected"},{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"0888e4e235f281bedb7c1c7c5a27a0bf0064b6f7","versionType":"git","status":"affected"},{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"9d8d1431ca2bf32658a7494770f6bfb2e478ee98","versionType":"git","status":"affected"},{"version":"445eaf871bf94eb496b9b610e35b9e8c8830219f","lessThan":"aaa6c8dec49339710f9fd2a2af5646cf4111dbd4","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/thermal/ti-soc-thermal/ti-bandgap.c","drivers/thermal/ti-soc-thermal/ti-thermal-common.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3.6","status":"affected"},{"version":"0","lessThan":"3.6","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0888e4e235f281bedb7c1c7c5a27a0bf0064b6f7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/178e078eee6f99a771683321607afc1e8452e724","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4183df28a3564878457f7bc9f35b5fc9fa4fe28a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/992585e3729ac54b882dcecc38b34b1060a5b386","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/9d8d1431ca2bf32658a7494770f6bfb2e478ee98","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/aaa6c8dec49339710f9fd2a2af5646cf4111dbd4","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c6bf7c8c3ff447a23c9ca70496e23bbee8021ff5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/da057b9533721fdeaae30772fdf6a8d8b01d6870","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}