Skip to main content

Linux Kernel CVE-2026-31731

| EUVDEUVD-2026-26544 HIGH
Use After Free (CWE-416)
2026-05-01 Linux
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain local authenticated access
  2. Delivery
    Trigger system suspend cycle
  3. Exploit
    Initiate thermal zone removal via sysfs
  4. Install
    Win race condition during resume
  5. C2
    Thermal work executes on freed memory
  6. Execute
    Spray kernel heap to control freed object
  7. Impact
    Redirect execution to shellcode
  8. Step 8
    Execute arbitrary code at kernel level

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires authenticated local access with low privileges (PR:L) to the Linux system. Exploitation depends on system configuration where thermal zone devices can be dynamically removed during power management operations - this occurs on systems with hotpluggable thermal sensors or when thermal zones are managed through loadable kernel modules that can be removed. Attacker must have ability to trigger system suspend/resume cycles (typical user capability on workstations/laptops) and simultaneously interact with thermal subsystem via /sys/class/thermal/ sysfs interface during the narrow race window. Attack complexity is low (AC:L) per CVSS but practical exploitation requires precise timing between suspend/resume events and thermal zone removal - window measured in milliseconds. Systems that never suspend/resume (always-on servers) or lack removable thermal zones are not practically exploitable despite meeting authentication prerequisites. No user interaction (UI:N) required beyond attacker's own actions.

Impact

CVSS 7.8 (High) reflects local attack vector requiring low privileges (AV:L/AC:L/PR:L), indicating authenticated local user access is needed. However, real-world risk is substantially lower than raw CVSS suggests. EPSS score of 0.02% (5th percentile) indicates security researchers assess exploitation probability as very low. The attack requires precise timing to win race conditions during system suspend/resume cycles while simultaneously triggering thermal zone removal - a highly specific and fragile condition. No public exploit code identified and no CISA KEV listing confirms this is not being actively exploited. SSVC framework assessment: Exploitation=None, Automatable=No (requires local access and precise timing), Technical Impact=Total (arbitrary code execution possible). Primary concern is enterprise Linux servers and embedded systems where thermal management is actively used and suspend/resume cycles occur frequently. Workstations with infrequent suspend cycles face minimal practical risk. Prioritize patching on: (1) laptop/mobile Linux deployments with frequent suspend/resume, (2) cloud instances using thermal-aware scheduling, (3) embedded systems with active thermal management. Standard desktop/server Linux with minimal power management can defer patching behind more critical updates.

Exploit ScenarioDerived

Local authenticated attacker with standard user privileges on a Linux laptop triggers a system suspend (lid close or manual suspend command). While system is resuming, attacker simultaneously forces thermal zone device removal through sysfs interface manipulation (/sys/class/thermal/), creating race condition window. If timing is precise, thermal polling work items continue executing against freed kernel memory structures after thermal_zone_device_unregister() completes, causing use-after-free condition. Attacker leverages controlled memory reuse to overwrite freed thermal zone object with malicious data structures, redirecting kernel execution flow to attacker-controlled code running at kernel privilege level (ring 0), achieving full system compromise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

Use-after-free in Linux kernel thermal subsystem allows local attackers with low privileges to execute arbitrary code, escalate privileges, or crash the system. The vulnerability stems from race conditions between thermal zone removal and power management resume operations, where delayed work items can continue executing after thermal zone objects are freed. EPSS score of 0.02% (5th percentile) suggests low probability of mass exploitation despite high CVSS severity. Vendor patches available across multiple stable kernel branches (6.12.83, 6.18.22, 6.19.12, 7.0) via upstream commits. No active exploitation confirmed in CISA KEV at time of analysis.

RemediationAI

Upgrade to patched Linux kernel versions: 6.12.83 or later for 6.12.x branch, 6.18.22 or later for 6.18.x branch, 6.19.12 or later for 6.19.x branch, or 7.0 or later for mainline. Distribution-specific packages available through standard update channels (apt, yum, dnf, zypper). Verify patch application by checking kernel version with 'uname -r' and confirming presence of commits 1a6d2b001eb7 (6.12 fix), 2dbe93f344f1 (6.18 fix), c4593f1654f7 (6.19 fix), or 45b859b07282 (mainline fix) via 'git log' on kernel source. If immediate patching is not feasible, implement compensating controls: (1) disable automatic suspend/resume on affected systems via 'systemctl mask sleep.target suspend.target' - note this prevents power management benefits, (2) restrict local user access and enforce principle of least privilege to limit PR:L attack prerequisite, (3) enable kernel address space layout randomization (KASLR) if not already active to increase exploitation difficulty, (4) monitor for unexpected system crashes during suspend/resume cycles as potential exploitation indicators. Reboot required after kernel upgrade to activate patched version. Side effects of disabling suspend: increased power consumption on laptops/mobile devices and loss of fast resume capability.

Affected VersionsENISA

Linux patch: 6.12.83
Linux 5a5efdaffda5d23717d9117cf36cda9eafcf2fae <2dbe93f344f10b432b95a23304006be805c097a1
Linux 5a5efdaffda5d23717d9117cf36cda9eafcf2fae <1a6d2b001eb730d85f00da39ae7db6f3b4edc540
Linux 5a5efdaffda5d23717d9117cf36cda9eafcf2fae <c4593f1654f7dea3bcf9bb1851ded86311d4f370
Linux patch: 7.0
Linux 5a5efdaffda5d23717d9117cf36cda9eafcf2fae <45b859b0728267a6199ee5002d62e6c6f3e8c89d
Linux 6.8
Linux patch: 6.18.22
Linux patch: 0
Linux patch: 6.19.12

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Linux kernel thermal subsystem manages CPU/device temperature monitoring and cooling through thermal zones. This vulnerability (CWE-416: Use After Free) occurs in the thermal core's power management integration where thermal_zone_pm_complete() and thermal_zone_device_resume() reinitialize poll_queue delayed work during system resume. Two race windows exist: (1) work items already running when thermal_pm_notify_complete() reinitializes the delayed work are missed by cancel_delayed_work_sync() in thermal_zone_device_unregister(), and (2) thermal_zone_device_resume() can queue new work after thermal_zone_exit() completes but before cancellation occurs. Both scenarios allow work callbacks to execute against freed thermal zone objects. The fix introduces a dedicated thermal workqueue, moves work cancellation earlier in the suspend flow, adds workqueue flushing after thermal_pm_notify_prepare(), and adds state checks to prevent work re-initialization during teardown. Affects Linux kernel versions from 5a5efdaffda5d23717d9117cf36cda9eafcf2fae onward across multiple stable branches.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
CVSS changed
May 07, 2026 - 15:52 NVD
7.8 (HIGH)
Patch available
May 01, 2026 - 16:02 EUVD
Patch released
May 01, 2026 - 15:24 nvd
Patch available
CVE Published
May 01, 2026 - 14:14 nvd
HIGH 7.8
CVE Published
May 01, 2026 - 14:14 nvd
N/A

DescriptionNVD

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.

Executive ViewAI

Why It Matters

CVE-2026-31731 is a high-severity use-after-free vulnerability in the Linux kernel thermal subsystem that allows local, low-privileged users to execute arbitrary code or crash systems through race condition exploitation. Organizations running affected kernel versions face elevated privilege escalation risk, particularly on systems where untrusted local accounts exist or where container escape is a concern; however, EPSS data indicates low real-world exploitation probability, reducing immediate urgency relative to CVSS severity.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Interim mitigations pending patch deployment: (1) restrict local user access and review sudoers/authentication policies to minimize attack surface; (2) disable thermal management features if operationally feasible (verify no thermal runaway risk); (3) isolate containers with additional AppArmor/SELinux profiles to restrict system call access to thermal subsystem interfaces.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy