Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-31731 — kernel

🟠 CVSS 7.8 — High ✅ No Known Exploit NVD
7.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

thermal: core: Address thermal zone removal races with resume

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Affected software

CVE-2026-31731 is recorded against 2 packages.

  • kernel (from 6.19.0 up to 6.19.12)
  • linux-kernel

Timeline and source

Published on 1 May 2026 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

CVE-2026-31731 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity High
CVSS Score 7.8
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2026-05-01
Updated 2026-08-20
Modified 2026-08-12

Affected Packages

Software From version Fixed in
kernel 6.19.0 6.19.12
linux-kernel

Similar Threats

Site Security Check

Is kernel part of your stack?

CVE-2026-31731 is rated CVSS 7.8 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.