{"id":"CVE-2026-46021","summary":"thermal: core: Fix thermal zone governor cleanup issues","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal: core: Fix thermal zone governor cleanup issues\n\nIf thermal_zone_device_register_with_trips() fails after adding\na thermal governor to the thermal zone being registered, the\ngovernor is not removed from it as appropriate which may lead to\na memory leak.\n\nIn turn, thermal_zone_device_unregister() calls thermal_set_governor()\nwithout acquiring the thermal zone lock beforehand which may race with\na governor update via sysfs and may lead to a use-after-free in that\ncase.\n\nAddress these issues by adding two thermal_set_governor() calls, one to\nthermal_release() to remove the governor from the given thermal zone,\nand one to the thermal zone registration error path to cover failures\npreceding the thermal zone device registration.","modified":"2026-06-11T12:29:12.868758683Z","published":"2026-05-27T12:56:23.515Z","related":["SUSE-SU-2026:2310-1","SUSE-SU-2026:2331-1","openSUSE-SU-2026:10954-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46021.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/37a430a2d4e66ec8238da6c7f7e48809bf265e13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/41ff66baf81c6541f4f985dd7eac4494d03d9440"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64d4ebf91d082034bbc5ae3ba2d7fd800bc02d06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/75f8f3c3e09122270986de9d7aa347d701676761"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f412e541d25a3dfaf3d53e012ade6ff03cae8a45"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46021.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46021"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8"},{"fixed":"37a430a2d4e66ec8238da6c7f7e48809bf265e13"},{"fixed":"f412e541d25a3dfaf3d53e012ade6ff03cae8a45"},{"fixed":"75f8f3c3e09122270986de9d7aa347d701676761"},{"fixed":"64d4ebf91d082034bbc5ae3ba2d7fd800bc02d06"},{"fixed":"41ff66baf81c6541f4f985dd7eac4494d03d9440"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46021.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"fixed":"6.6.140"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.27"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46021.json"}}],"schema_version":"1.7.5"}