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 9C60229CB24 for ; Wed, 18 Jun 2025 11:17:17 +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=1750245437; cv=none; b=tMJCGcTVofLYsUmE6sHk9piiL1F941RwC0HWPDNCQq8Jp/OE7WlfBUcpL0OAVBaEoWmdkfIqDf0O1P2uLGk5GCFoq7qQX7mah75WNtlBHL54Xxgb3XePPmSDPBxTI6JI5FuI2tgX9PrPGCQgWCR75IiZr1hM6PQfOHPa/a4oaDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245437; c=relaxed/simple; bh=x3y2lw5CTNF4yFhvEpnX0PWKsY30d23N7jfWAc0Y7Pk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QErS3sDpvLaKZkHTKkXLw2DWXAXV2qsM2qltOWBNXu3ZENSSkMDJYz80auYvC3VOfc8BooVvz0z8+maJLblZqCySPrihYIStn6WgOVHgf/JiBNKRq+YfBKXwBTS6UO9YRe7MiqmiEAcWR/Wq1cQ8DHMiXuBV8yMYJ3Sm4rdOr7E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SfxRDOj+; 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="SfxRDOj+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CE9AC4CEE7; Wed, 18 Jun 2025 11:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245437; bh=x3y2lw5CTNF4yFhvEpnX0PWKsY30d23N7jfWAc0Y7Pk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SfxRDOj+D4qIyVby+lueecSBw0TOSrq/txIOKlQUUklSYLQ1pYvKlr/Y4NsZOfigj STHPlqNXachcuMLpXSJjKN4cIUYag0CalF6rMZOX6BAfaHMqr9sKDn8n/TgduT9bsE +YLpaq1VK8bTtlHNVPFA++YXJ3rkF5qr4iIujhfU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50232: arm64: set UXN on swapper page tables Date: Wed, 18 Jun 2025 13:04:57 +0200 Message-ID: <2025061851-CVE-2022-50232-373d@gregkh> X-Mailer: git-send-email 2.49.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=2074; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pq/UbwCg4MvG69MN2mXT9WVtyaeDid6cgIi3V79FtkU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+bndwb9VitgimxinP7YK/hIaKvptaqy6xNYzpta5 4bHn7nXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORM2SYK/1gt/Z+19ZaS+cz bXvCEjMDrr6+yjCH47r+7wm16yR+eV68UvIisjwmhaMRAA== 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: arm64: set UXN on swapper page tables [ This issue was fixed upstream by accident in c3cee924bd85 ("arm64: head: cover entire kernel image in initial ID map") as part of a large refactoring of the arm64 boot flow. This simple fix is therefore preferred for -stable backporting ] On a system that implements FEAT_EPAN, read/write access to the idmap is denied because UXN is not set on the swapper PTEs. As a result, idmap_kpti_install_ng_mappings panics the kernel when accessing __idmap_kpti_flag. Fix it by setting UXN on these PTEs. The Linux kernel CVE team has assigned CVE-2022-50232 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 18107f8a2df6bf1c6cac8d0713f757f866d5af51 and fixed in 5.15.60 with commit 775871d4be0d75e219cca937af843a4a1b60489a 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-2022-50232 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/arm64/include/asm/kernel-pgtable.h arch/arm64/kernel/head.S 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/775871d4be0d75e219cca937af843a4a1b60489a