Description
In the Linux kernel, the following vulnerability has been resolved:

thermal: core: Fix thermal zone governor cleanup issues

If thermal_zone_device_register_with_trips() fails after adding
a thermal governor to the thermal zone being registered, the
governor is not removed from it as appropriate which may lead to
a memory leak.

In turn, thermal_zone_device_unregister() calls thermal_set_governor()
without acquiring the thermal zone lock beforehand which may race with
a governor update via sysfs and may lead to a use-after-free in that
case.

Address these issues by adding two thermal_set_governor() calls, one to
thermal_release() to remove the governor from the given thermal zone,
and one to the thermal zone registration error path to cover failures
preceding the thermal zone device registration.
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw exists in the Linux kernel’s thermal core subsystem. When a thermal governor is added to a thermal zone and the subsequent device registration fails, the governor is not removed, causing a memory leak. In addition, the unregistration routine calls thermal_set_governor() without holding the thermal zone lock, which can race with concurrent sysfs updates and lead to a use‑after‑free. The vulnerable code paths give a local attacker with sufficient privileges the opportunity to crash the kernel, corrupt memory, or potentially execute arbitrary code if the freed object can be reused maliciously.

Affected Systems

All Linux kernel builds that ship the thermal core subsystem and have not incorporated the commits referenced in the advisory are affected. The fix is present in the commits linked above, so any kernel newer than those points is protected. Systems running unpatched Linux kernels of any vendor that include the thermal subsystem are at risk.

Risk and Exploitability

Based on the description, the likely attack vector is local privilege escalation via the sysfs thermal interface. The CVSS score is not provided and EPSS is unavailable, but the absence of a remote exploitation path combined with the kernel‑level impact suggests a moderate‑to‑high risk. The vulnerability is not listed in the CISA KEV catalog and no public exploit is known, however the use‑after‑free could allow code execution if an attacker can arrange the race condition or provoke the failure path.

Generated by OpenCVE AI on May 27, 2026 at 18:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that contains the thermal zone governor cleanup fix.
  • Reboot the system to activate the updated kernel.
  • Configure monitoring to alert on kernel panics, memory corruption, or abnormal thermal subsystem behavior.

Generated by OpenCVE AI on May 27, 2026 at 18:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 27 May 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-416

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: thermal: core: Fix thermal zone governor cleanup issues If thermal_zone_device_register_with_trips() fails after adding a thermal governor to the thermal zone being registered, the governor is not removed from it as appropriate which may lead to a memory leak. In turn, thermal_zone_device_unregister() calls thermal_set_governor() without acquiring the thermal zone lock beforehand which may race with a governor update via sysfs and may lead to a use-after-free in that case. Address these issues by adding two thermal_set_governor() calls, one to thermal_release() to remove the governor from the given thermal zone, and one to the thermal zone registration error path to cover failures preceding the thermal zone device registration.
Title thermal: core: Fix thermal zone governor cleanup issues
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:56:23.515Z

Reserved: 2026-05-13T15:03:33.092Z

Link: CVE-2026-46021

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:20.567

Modified: 2026-05-27T14:48:03.013

Link: CVE-2026-46021

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T18:45:39Z

Weaknesses