Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-31731

HIGH 7.8EPSS 1%

thermal: core: Address thermal zone removal races with resume

Mitigation

  • Upgrade Linux to 45b859b0728267a6199ee5002d62e6c6f3e8c89d or later.

Who should check

  • Anyone running Linux >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 1a6d2b001eb730d85f00da39ae7db6f3b4edc540; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 2dbe93f344f10b432b95a23304006be805c097a1; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < c4593f1654f7dea3bcf9bb1851ded86311d4f370; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 45b859b0728267a6199ee5002d62e6c6f3e8c89d
  • Anyone running Linux 6.8

Vulnerability facts

Affected
Linux >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 1a6d2b001eb730d85f00da39ae7db6f3b4edc540; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 2dbe93f344f10b432b95a23304006be805c097a1; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < c4593f1654f7dea3bcf9bb1851ded86311d4f370; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 45b859b0728267a6199ee5002d62e6c6f3e8c89d; Linux 6.8
Fixed in
Linux 1a6d2b001eb730d85f00da39ae7db6f3b4edc540, Linux 2dbe93f344f10b432b95a23304006be805c097a1, Linux 45b859b0728267a6199ee5002d62e6c6f3e8c89d
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.13% chance of exploitation in 30 days (percentile 1, 2026-11-26)
CWE
CWE-416, CWE-362
Published
Modified

Description

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 after the freeing of the thermal zone object, which also leads to a use-after-free. Address the first failing scenario by ensuring that no thermal work items will be running when thermal_pm_notify_complete() is called. For this purpose, first move the cancel_delayed_work() call from thermal_zone_pm_complete() to thermal_zone_pm_prepare() to prevent new work from entering the workqueue going forward. Next, switch over to using a dedicated workqueue for thermal events and update the code in thermal_pm_notify() to flush that workqueue after thermal_pm_notify_prepare() has returned which will take care of all leftover thermal work already on the workqueue (that leftover work would do nothing useful anyway because all of the thermal zones have been flagged as suspended). The second failing scenario is addressed by adding a tz->state check to thermal_zone_device_resume() to prevent it from re-initializing the poll_queue delayed work if the thermal zone is going away. Note that the above changes will also facilitate relocating the suspend and resume of thermal zones closer to the suspend and resume of devices, respectively.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 1a6d2b001eb730d85f00da39ae7db6f3b4edc540; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 2dbe93f344f10b432b95a23304006be805c097a1; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < c4593f1654f7dea3bcf9bb1851ded86311d4f370; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 45b859b0728267a6199ee5002d62e6c6f3e8c89d—cvelist
Linux6.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-31731. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31731.md
Affected: Linux >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 1a6d2b001eb730d85f00da39ae7db6f3b4edc540; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 2dbe93f344f10b432b95a23304006be805c097a1; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < c4593f1654f7dea3bcf9bb1851ded86311d4f370; >= 5a5efdaffda5d23717d9117…
Fixed in: Linux 1a6d2b001eb730d85f00da39ae7db6f3b4edc540, Linux 2dbe93f344f10b432b95a23304006be805c097a1, Linux 45b859b0728267a6199ee5002d62e6c6f3e8c89d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-31731 being exploited?

There is no confirmed exploitation: CVE-2026-31731 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-31731?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-31731?

Linux >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 1a6d2b001eb730d85f00da39ae7db6f3b4edc540; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 2dbe93f344f10b432b95a23304006be805c097a1; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < c4593f1654f7dea3bcf9bb1851ded86311d4f370; >= 5a5efdaffda5d23717d9117cf36cda9eafcf2fae, < 45b859b0728267a6199ee5002d62e6c6f3e8c89d; Linux 6.8.

Is there a fix for CVE-2026-31731?

Yes. Fixed in Linux 1a6d2b001eb730d85f00da39ae7db6f3b4edc540, Linux 2dbe93f344f10b432b95a23304006be805c097a1, Linux 45b859b0728267a6199ee5002d62e6c6f3e8c89d. Upgrade Linux to 45b859b0728267a6199ee5002d62e6c6f3e8c89d or later.

How do I check if I'm affected by CVE-2026-31731?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors