Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A310405C23 for ; Wed, 27 May 2026 13:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886904; cv=none; b=NN1sLJnNxjMx78Iw+Iscjo6tLs7sOnLj/6lOxh6KMN+JGDJcIorCVzECAeRRppacVyGWZcfER81kUrmjmN2E1hwnpArf0F0djYVHbXgZfXkiLoQTsDhFV0KDu4oZxkDN+5DOSALwUNditcAprbG7EfDlVfKu6d4UtGt9gGCziYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886904; c=relaxed/simple; bh=52/q68MrilTuQyElZjq04v9V+PWtD5aLTFIsRha31rI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=COalci1M+JEEOxWGOdbyCIAKwvM6kzEq1ZtlAW/TrkjgqlOpYndOpFwGjypjSq5FNIieNhMJruPBrTkzs4A27zVk2S9jciayrW6QjeV2RSARyqCAuLJP0GiPUP9DA0yCmT9kEsdfUbOXkT3Sm0C/prz4I3kJeq4V8GpVxQ4JXE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F68dEBRx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="F68dEBRx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 961661F000E9; Wed, 27 May 2026 13:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886903; bh=gJKsKdL4nMPOq2rgBdhgNlPmKo+DW8BBnakBjm04kaE=; h=From:To:Cc:Subject:Date:Reply-To; b=F68dEBRxSVtnn/xDeIr+/SXNDVczk5JqPoCWK5f9EpJ/jarB5xs1Hzi26NdBKZ5NA QARqFAWTsusrmJfEUG/f/ZEev9DePmaANZiFZPw2oa4r0IsD0PDUiMGqxMShvaX22S 8iCkujShi/p4pqvgx/HctWCj9zgYPOR15pltGm20= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46021: thermal: core: Fix thermal zone governor cleanup issues Date: Wed, 27 May 2026 14:59:12 +0200 Message-ID: <2026052746-CVE-2026-46021-095e@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3149; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j4ysdQj9xKNXKfQSwI2khox8zw1Qtwnbqt6P2Bq8zQE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir9qad3G+Eolt7HsQa/lW6swdQRZt18v2F94J/kpPM vXK/P+vI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbi94VhrmzJ1L162+q3pCRd iHcQ5/AM+tcYwTA/Iy/Rg2XyCeHJR0skO+SOZnfszzcBAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-46021 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 and fixed in 6.6.140 with commit 37a430a2d4e66ec8238da6c7f7e48809bf265e13 Issue introduced in 4.2 with commit e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 and fixed in 6.12.86 with commit f412e541d25a3dfaf3d53e012ade6ff03cae8a45 Issue introduced in 4.2 with commit e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 and fixed in 6.18.27 with commit 75f8f3c3e09122270986de9d7aa347d701676761 Issue introduced in 4.2 with commit e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 and fixed in 7.0.4 with commit 64d4ebf91d082034bbc5ae3ba2d7fd800bc02d06 Issue introduced in 4.2 with commit e33df1d2f3a0141cd79e770f31999ba0dd7ebfa8 and fixed in 7.1-rc1 with commit 41ff66baf81c6541f4f985dd7eac4494d03d9440 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-46021 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/thermal/thermal_core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/37a430a2d4e66ec8238da6c7f7e48809bf265e13 https://git.kernel.org/stable/c/f412e541d25a3dfaf3d53e012ade6ff03cae8a45 https://git.kernel.org/stable/c/75f8f3c3e09122270986de9d7aa347d701676761 https://git.kernel.org/stable/c/64d4ebf91d082034bbc5ae3ba2d7fd800bc02d06 https://git.kernel.org/stable/c/41ff66baf81c6541f4f985dd7eac4494d03d9440