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 070A419149C for ; Tue, 30 Jul 2024 07:51:52 +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=1722325913; cv=none; b=QY4P1T26w8IGiwiAFepDfWRvzNfCw8y3l30bg7IczZQVqP3qCS5ARGmuXryOmVP/Dp8u/eLUgpAWbnNf8DCgw65a0708n1mrCnwq8BvUnMAqfjT46NEniTnrKamvVWu+/tjRXqnpeiGGmtBg87ARzNRtUKw2UqjNPUd7qGZYKYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325913; c=relaxed/simple; bh=fClIujsvk4gdMhNL+M3Hzyc6CPLzgCxH2uk8CzbVqBI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tMaTZfgWlGIzviEVggtXolxJY7AQgR2F3GrjvGaQqtBLh2uw0LCK2z3nLYQ3TVOlQoShwuRdPjqJPtJ5SCMFeLZxq4bdX0eCdRZcHeqECpPpgspZ46V2Sj2p6cS7OJhuiJstCP2+pVKTkAusDJuy6OXBQDoc2lFXUzNdxCT74cA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rplxanxt; 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="rplxanxt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16FD3C32782; Tue, 30 Jul 2024 07:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325912; bh=fClIujsvk4gdMhNL+M3Hzyc6CPLzgCxH2uk8CzbVqBI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rplxanxtfmIas0JMBBKBZbBIv54APdfEuYCoLPTTf9nA3b6fCOaD7zb04Gm2HkrWF pHSPwnpwlsfNXA2G09xWceHRG6MhBOTkOJIb8mnccFtEZxChe1D8g4psRegNFHG5XD WArM9Jbg09YWTgdkGITnuE9yT0nloPv5l9rezFNs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42230: powerpc/pseries: Fix scv instruction crash with kexec Date: Tue, 30 Jul 2024 09:48:28 +0200 Message-ID: <2024073039-CVE-2024-42230-a46d@gregkh> X-Mailer: git-send-email 2.45.2 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=2710; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fClIujsvk4gdMhNL+M3Hzyc6CPLzgCxH2uk8CzbVqBI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZs0ukU8qDGZp37jrouon6XNhae84kuu/aS58c1RLJ GfmwkOiHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRW/sY5nDvjT+dy+R4WXp5 U0TviZizr+tXtjDMT/ua474hatXzrc/MAn7Vxh06umdpOQA= 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: powerpc/pseries: Fix scv instruction crash with kexec kexec on pseries disables AIL (reloc_on_exc), required for scv instruction support, before other CPUs have been shut down. This means they can execute scv instructions after AIL is disabled, which causes an interrupt at an unexpected entry location that crashes the kernel. Change the kexec sequence to disable AIL after other CPUs have been brought down. As a refresher, the real-mode scv interrupt vector is 0x17000, and the fixed-location head code probably couldn't easily deal with implementing such high addresses so it was just decided not to support that interrupt at all. The Linux kernel CVE team has assigned CVE-2024-42230 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 7fa95f9adaee and fixed in 6.1.98 with commit c550679d6047 Issue introduced in 5.9 with commit 7fa95f9adaee and fixed in 6.6.39 with commit d10e3c39001e Issue introduced in 5.9 with commit 7fa95f9adaee and fixed in 6.9.9 with commit 8c6506616386 Issue introduced in 5.9 with commit 7fa95f9adaee and fixed in 6.10 with commit 21a741eb75f8 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-42230 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: arch/powerpc/kexec/core_64.c arch/powerpc/platforms/pseries/kexec.c arch/powerpc/platforms/pseries/pseries.h arch/powerpc/platforms/pseries/setup.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/c550679d604798d9fed8a5b2bb5693448a25407c https://git.kernel.org/stable/c/d10e3c39001e9194b9a1bfd6979bd3fa19dccdc5 https://git.kernel.org/stable/c/8c6506616386ce37e59b2745fc481c6713fae4f3 https://git.kernel.org/stable/c/21a741eb75f80397e5f7d3739e24d7d75e619011