{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "445eaf871bf94eb496b9b610e35b9e8c8830219f"
            },
            {
              "fixed": "c6bf7c8c3ff447a23c9ca70496e23bbee8021ff5"
            },
            {
              "fixed": "178e078eee6f99a771683321607afc1e8452e724"
            },
            {
              "fixed": "da057b9533721fdeaae30772fdf6a8d8b01d6870"
            },
            {
              "fixed": "4183df28a3564878457f7bc9f35b5fc9fa4fe28a"
            },
            {
              "fixed": "992585e3729ac54b882dcecc38b34b1060a5b386"
            },
            {
              "fixed": "0888e4e235f281bedb7c1c7c5a27a0bf0064b6f7"
            },
            {
              "fixed": "9d8d1431ca2bf32658a7494770f6bfb2e478ee98"
            },
            {
              "fixed": "aaa6c8dec49339710f9fd2a2af5646cf4111dbd4"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139405.json"
  },
  "details": "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-\u003eti_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-\u003ereport_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.",
  "id": "CVE-2026-139405",
  "modified": "2026-12-01T20:45:24.267574313Z",
  "published": "2026-11-30T13:34:27.168Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0888e4e235f281bedb7c1c7c5a27a0bf0064b6f7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/178e078eee6f99a771683321607afc1e8452e724"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4183df28a3564878457f7bc9f35b5fc9fa4fe28a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/992585e3729ac54b882dcecc38b34b1060a5b386"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9d8d1431ca2bf32658a7494770f6bfb2e478ee98"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/aaa6c8dec49339710f9fd2a2af5646cf4111dbd4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c6bf7c8c3ff447a23c9ca70496e23bbee8021ff5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/da057b9533721fdeaae30772fdf6a8d8b01d6870"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139405.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139405"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "thermal/drivers/ti-soc-thermal: Cancel pending alert work on remove"
}