CVE-2026-46021

thermal: core: Fix thermal zone governor cleanup issues

MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.14 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 < a172fa18bc370b776ac1510abb0dcb50a7a35fac ; affected e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 < 8e563d8db50f303171aceb79eec0807e7ba06951 ; affected e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 < d4eb861adde5ce22e459fbd29366f47bb2167977 ; affected e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 < 37a430a2d4e66ec8238da6c7f7e48809bf265e13 ; affected e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 < f412e541d25a3dfaf3d53e012ade6ff03cae8a45 ; affected e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 < 75f8f3c3e09122270986de9d7aa347d701676761
Linux · Linuxaffected 4.2 ; unaffected 0 < 4.2 ; unaffected 5.10.259 ≤ 5.10.* ; unaffected 5.15.210 ≤ 5.15.* ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.140 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD