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 61ED51FB3C3 for ; Mon, 21 Oct 2024 18:55:02 +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=1729536902; cv=none; b=H8rD/aY+vOaHoxcvE7eiWaBk9etvD8KvGAfjc7yiNk5CKS3GtwSiIlKy/1forIqg4aumoNgwPc3oQ7OEOSn2WSAbgiyDNqbW1NYMvZGp4vCPkuOcSRetf6anDWi1BIpEfPxvlbIE4lo8bGVDbpqpPkTv7BiZbOocwy2aJ1ECfKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729536902; c=relaxed/simple; bh=1Y43qNygUlAxpoyUshtt1BpBZ2GDUky5ZLqWueK8D9E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jT4CZ66QMPOWdN0u1fBpldCThnabFKZl1BI0TJuyvUES0dgRJBgK7dMlyoXTzMHagelrGnVDfHgBZTnREyWI81s7Y33r8OiC9W+klEP0m143wGtrYqtWarCFmKzgVtYLRRLZHUuLqj9RoZve1SaWYxKBmeEDa4cel3pZjFOJkgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wRu9NtS8; 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="wRu9NtS8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBEB3C4CEC3; Mon, 21 Oct 2024 18:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729536902; bh=1Y43qNygUlAxpoyUshtt1BpBZ2GDUky5ZLqWueK8D9E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wRu9NtS8PA4bcxgrDvgc12DDPwUFPn6whvBZnfiILT9zdCk55CWsgT/tTQHYeEJ+H zSGaENKFlZSQ3AyDHuyGH+fpigeQNPItJYHa0GNPzgpeytTiRt9JDzxpmWh9anXUiu iweivX77Qh0HNMqsQ4tKVRsCFuQ8ti58eF6nFXlU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50009: cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value Date: Mon, 21 Oct 2024 20:54:13 +0200 Message-ID: <2024102109-CVE-2024-50009-1b62@gregkh> X-Mailer: git-send-email 2.47.0 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=1727; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1Y43qNygUlAxpoyUshtt1BpBZ2GDUky5ZLqWueK8D9E=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliiwMVXZYzXV9fN6PFIl+5o6ClY99K0aD0lPWNc2I0b W21W852xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEROdTLMrzlZkXf3Om9/cPsG IbOQBRsPipUxMcwPPncs0prNybSH6yL7smXzM5crdDwHAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value cpufreq_cpu_get may return NULL. To avoid NULL-dereference check it and return in case of error. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-50009 to this issue. Affected and fixed versions =========================== Fixed in 6.11.3 with commit 5f250d44b819 Fixed in 6.12-rc1 with commit 5493f9714e4c 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-2024-50009 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/cpufreq/amd-pstate.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/5f250d44b8191d612355dd97b89b37bbc1b5d2cb https://git.kernel.org/stable/c/5493f9714e4cdaf0ee7cec15899a231400cb1a9f