Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B04242C3276 for ; Tue, 19 Aug 2025 17:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624140; cv=none; b=IB9D3O2ZaVlaJ/g7jFyIaPjf1JhyBYvRDCsD8NHeoDpSOYo7CPXnt+Xeo2T0mMrVuTBTh/WPn/YRsX+/exJ1dYGEfQK3brY6jlUCIpQtCT2Uxd0xMXsCqV5KZsep3e9JVIDoRYoY/GDdpG41KOL23215sQB3l1iWXezdIxD4JRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624140; c=relaxed/simple; bh=oRLBHKh9oedbYv9j6pLGoZ7g7NePZxlQKDT45/AJiCU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ED06kQ9FR1jcFD8Lxa858HLHvXqKUuN32OoMvcXd7BMJlPoahoAJPZcmcsvsqElqTRvFdW9FtCvcqhju7AGAxUdx5CiZDkO2I43zYB7JzOujKFgimCXILNH07qnHnW41H3ZnRcYY7ul3Y4cJHU7wDt1fMMTl42fpqACFRAUExH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OaRB6WCF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OaRB6WCF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF710C4CEF1; Tue, 19 Aug 2025 17:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624139; bh=oRLBHKh9oedbYv9j6pLGoZ7g7NePZxlQKDT45/AJiCU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OaRB6WCFrgxoC3H8766bt1my80xwSvz9/ZgqXKR/G5gLZirlARTK8E+21Bi9iTNQs SqxlUGGueuusKMJEiH5/68sREzHgF+A4D9wg0sv7dviReIAQIbUarccXEyZ0EnBXrQ UG2RhcZ4+0sGCCon7UoiKJjHRgnjAr1B0JmQ+39w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38609: PM / devfreq: Check governor before using governor->name Date: Tue, 19 Aug 2025 19:18:55 +0200 Message-ID: <2025081923-CVE-2025-38609-9c6a@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3008; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=70jSsjSlCgn89HeHft7QuJiYvK5Vdv2csXzvO8Z/oy4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNt6/ElN7kMXHR+Wr1C3RQ7LXTiqy9DByiNqIbLRaa LfxhenTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI1wKGefYFX6dI3S5eua/+ /723mre+1BkabGaYZ505zepy+83/G7+t8d/2ke2/9NzZJQA= 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: PM / devfreq: Check governor before using governor->name Commit 96ffcdf239de ("PM / devfreq: Remove redundant governor_name from struct devfreq") removes governor_name and uses governor->name to replace it. But devfreq->governor may be NULL and directly using devfreq->governor->name may cause null pointer exception. Move the check of governor to before using governor->name. The Linux kernel CVE team has assigned CVE-2025-38609 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 and fixed in 6.1.148 with commit 631e101728df2a86b8fb761b49fad9712c651f8a Issue introduced in 5.11 with commit 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 and fixed in 6.6.102 with commit 81f50619370045120c133bfdda5b320c8c97d41e Issue introduced in 5.11 with commit 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 and fixed in 6.12.42 with commit d5632359dbc44862fc1ed04093c1f57529830261 Issue introduced in 5.11 with commit 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 and fixed in 6.15.10 with commit 2731c68f536fddcb71332db7f8d78c5eb4684c04 Issue introduced in 5.11 with commit 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 and fixed in 6.16.1 with commit 75323a49aa603cf5484a6d74d0d329e86d756e11 Issue introduced in 5.11 with commit 96ffcdf239de6f9970178bb7d643e16fd9e68ab9 and fixed in 6.17-rc1 with commit bab7834c03820eb11269bc48f07c3800192460d2 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-2025-38609 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/devfreq/devfreq.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/631e101728df2a86b8fb761b49fad9712c651f8a https://git.kernel.org/stable/c/81f50619370045120c133bfdda5b320c8c97d41e https://git.kernel.org/stable/c/d5632359dbc44862fc1ed04093c1f57529830261 https://git.kernel.org/stable/c/2731c68f536fddcb71332db7f8d78c5eb4684c04 https://git.kernel.org/stable/c/75323a49aa603cf5484a6d74d0d329e86d756e11 https://git.kernel.org/stable/c/bab7834c03820eb11269bc48f07c3800192460d2