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 B3F8084FB0 for ; Fri, 24 May 2024 15:13:35 +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=1716563615; cv=none; b=T93h2fiq/cVhD7tqf6qtLHS/K/kA/wMFNGAI6PbUwEA1nwJmm+Yu/2tYlZzXfWvahKPXOIPXmWyWjOPHPzHvxypoPrfHECMF10OK4u1TN2Zxs3gpRCxzY1wjBO9BgWusIqQ4vkiQ9Gm5h8hQwoKYRmn1Y83/VIzDkglHLoxA95A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563615; c=relaxed/simple; bh=YpqvNmQoH/CxUADzwqj+Zml/qWBLjBQJsCG3iDAOB1A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Iw/dUmfnbaLFKL+NpgxzS4NSalxu16IeW6MPGWUvE9DYB51XT0l5UABjkWAemcf8FJiJryUzs6uugcO3LpQCmjYsVwaHiEcCCltxocd3T7pOB5fyHdeSWFEzzFeCGmtouEwKQvHDLBLBnvgW/kuzwiHnu1rxxYTjfdKM+nZlGbo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uI16IbnY; 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="uI16IbnY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37C47C2BBFC; Fri, 24 May 2024 15:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563615; bh=YpqvNmQoH/CxUADzwqj+Zml/qWBLjBQJsCG3iDAOB1A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uI16IbnYdIgIvMJLA2qFi4l6yfgLQGnHC6JebzrRBPUz1Ep2tT+TqWMGrpahiUoj0 X1dbbkEQBZ9dIjTVZqAWj10smJQ7DquDe/AF9HNhIynoXvzNWsxfQDs4+VtcMJ1njQ ELhRWpHq23jqlGKuJb6WoQn5bpbL+cEJMyisIieQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47567: powerpc/32: Fix hardlockup on vmap stack overflow Date: Fri, 24 May 2024 17:12:59 +0200 Message-ID: <2024052453-CVE-2021-47567-b955@gregkh> X-Mailer: git-send-email 2.45.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=2213; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YpqvNmQoH/CxUADzwqj+Zml/qWBLjBQJsCG3iDAOB1A=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkB60ptQhb+e74pMmLPPGPp35WODw+8DJFmWDuj/IC/y busq++sO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiPywZZrNvca45W/5H40Im 5zpx8fSXt+bwT2ZYMPePRWJtz94t844mzPCfYLFHuOrFRgA= 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/32: Fix hardlockup on vmap stack overflow Since the commit c118c7303ad5 ("powerpc/32: Fix vmap stack - Do not activate MMU before reading task struct") a vmap stack overflow results in a hard lockup. This is because emergency_ctx is still addressed with its virtual address allthough data MMU is not active anymore at that time. Fix it by using a physical address instead. The Linux kernel CVE team has assigned CVE-2021-47567 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit c118c7303ad5 and fixed in 5.10.83 with commit dfe906da9a1a Issue introduced in 5.10 with commit c118c7303ad5 and fixed in 5.15.6 with commit c4e3ff8b8b1d Issue introduced in 5.10 with commit c118c7303ad5 and fixed in 5.16 with commit 5bb60ea611db Issue introduced in 5.9.5 with commit 3b234b4a6651 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-2021-47567 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/kernel/head_32.h 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/dfe906da9a1abebdebe8b15bb3e66a2578f6c4c7 https://git.kernel.org/stable/c/c4e3ff8b8b1d54f0c755670174c453b06e17114b https://git.kernel.org/stable/c/5bb60ea611db1e04814426ed4bd1c95d1487678e