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 AF8391CABF for ; Fri, 8 Nov 2024 05:24:30 +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=1731043470; cv=none; b=dj9kF4ACsPMMJB6sRWP+tDdTI2G7YkiVclRA532BKni6M5vstpctcKjtR8QI/kgzgHuh/mlGZ9uMJ5b1IGT7WVLNm9eJ4/oM7BmZxF5PY3q0/bUrgFIFZSnI6Qje/iuep04O5VZe9/erVQcOqH7NlgA5VX3nTJJfEhrd+oYKJ80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731043470; c=relaxed/simple; bh=conhLaUGluHQxlYBDpv8YbtB1du/1KgQKOOmpRh+GxE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q7Xjpj94hYwEOTNmZndZou7loA9o+U048wzGoPWHN2g5pGgPGCzzl/I7gEGSeaiubsMxP2p75i1AbVtwrXGZeMs/3iwYZFu+FKAXjBm2o4a9HuDNNtT0ZrapJEGZvLAeHLgX+2U742YwX8WY9qo3FK2N1hbNDLvyii6HagNrcgs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fSY7fqlZ; 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="fSY7fqlZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CB24C4CECE; Fri, 8 Nov 2024 05:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731043470; bh=conhLaUGluHQxlYBDpv8YbtB1du/1KgQKOOmpRh+GxE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fSY7fqlZfN5Vcb+XECeADaz5niCo32EBQXItEvDaVTplvdiUjkoXXmrfoPKfj2VpD YXgSiK0dwlwlGB3+FB6qCldhvXp42DmyinKC17AdeASSrxn4jIzfGzHK3Uw7hEpPF+ GD7J5ndoKDuIKl7CYWgkWfg3LZ1Q3LTfwBXTKPuk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50178: cpufreq: loongson3: Use raw_smp_processor_id() in do_service_request() Date: Fri, 8 Nov 2024 06:24:09 +0100 Message-ID: <2024110807-CVE-2024-50178-f72f@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=1871; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=conhLaUGluHQxlYBDpv8YbtB1du/1KgQKOOmpRh+GxE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm6C8oFJJPtlF0EDh/7ufxzUsNXV0bvVz2mqknVB/eEv LZw4uDsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlUFzDMrzmgxq1g2MzRvbq+ /v28/jXK2bsmMczhYDXmPhK6XmqDnsyrXbGrH6j0cN8CAA== 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: loongson3: Use raw_smp_processor_id() in do_service_request() Use raw_smp_processor_id() instead of plain smp_processor_id() in do_service_request(), otherwise we may get some errors with the driver enabled: BUG: using smp_processor_id() in preemptible [00000000] code: (udev-worker)/208 caller is loongson3_cpufreq_probe+0x5c/0x250 [loongson3_cpufreq] The Linux kernel CVE team has assigned CVE-2024-50178 to this issue. Affected and fixed versions =========================== Fixed in 6.11.3 with commit 2f78e4a6d270 Fixed in 6.12-rc1 with commit 2b7ec33e534f 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-50178 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/loongson3_cpufreq.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/2f78e4a6d2702ac03c2bf2ed3a0e344e1fa9f967 https://git.kernel.org/stable/c/2b7ec33e534f7a10033a5cf07794acf48b182bbe