Skip to content
Heist/ feed
High

thermal: core: Address thermal zone removal races with resume

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: thermal: core: Address thermal zone removal races with resume Since thermal_zone_pm_complete() and thermal_zone_device_resume() re-initialize the poll_queue delayed work for the given thermal zone, the cancel_delayed_work_sync() in thermal_zone_device_unregister() may miss some already running work items and the thermal zone may be freed prematurely [1]. There are two failing scenarios that both start with running thermal_pm_notify_complete() right before invoking thermal_zone_device_unregister() for one of the thermal zones. In the first scenario, there is a work item already running for the given thermal zone when thermal_pm_notify_complete() calls thermal_zone_pm_complete() for that thermal zone and it continues to run when thermal_zone_device_unregister() starts. Since the poll_queue delayed work has been re-initialized by thermal_pm_notify_complete(), the running work item will be missed by the cancel_delayed_work_sync() in thermal_zone_device_unregister() and if it continues to run past the freeing of the thermal zone object, a use-after-free will occur. In the second scenario, thermal_zone_device_resume() queued up by thermal_pm_notify_complete() runs right after the thermal_zone_exit() called by thermal_zone_device_unregister() has returned. The poll_queue delayed work is re-initialized by it before cancel_delayed_work_sync() is called by thermal_zone_device_unregister(), so it may continue to run aft

Announced Source revision 1
Original source ↗

CVE-2026-31731

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-31731

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5a5efdaffda5d23717d9117cf36cda9eafcf2fae",
        "lessThan": "1a6d2b001eb730d85f00da39ae7db6f3b4edc540",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a5efdaffda5d23717d9117cf36cda9eafcf2fae",
        "lessThan": "2dbe93f344f10b432b95a23304006be805c097a1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a5efdaffda5d23717d9117cf36cda9eafcf2fae",
        "lessThan": "c4593f1654f7dea3bcf9bb1851ded86311d4f370",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5a5efdaffda5d23717d9117cf36cda9eafcf2fae",
        "lessThan": "45b859b0728267a6199ee5002d62e6c6f3e8c89d",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/thermal/thermal_core.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.8"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.8",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.83",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.22",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19.12",
        "versionType": "semver",
        "lessThanOrEqual": "6.19.*"
      },
      {
        "status": "unaffected",
        "version": "7.0",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/thermal/thermal_core.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-31731

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#39989 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement