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 D8FC328B503 for ; Wed, 18 Jun 2025 11:17:10 +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=1750245430; cv=none; b=qCY0rEtrccRRxIpLk+PE24WbrAOAIUKSWDJqFrV/6uEAxqqITx+ItIO+MwFsdol6LpOOQy7sc0oytseUe5m8XX1PhF0+mUlsCGq5sWtWqWizyWHbYu6JT0vkYC9nzMM2hfvOi2Q/XrfNC/FeS3tXftC8G3ocD+F9szolObIMFNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245430; c=relaxed/simple; bh=6ZY2hzz6/wTqlTbx1jFbwzXsniaWJtaFYA8rAicJv38=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tE5tCXxv4iH5oM64CcQv32AQuKj8tGGnvw4w2qqY6chNXtqc7/vOa0V5MET7RTwPJZroL2B9nHzwRqFLpE0jz4nYqUGGYo3X46UxHL+nNd56EpSlwA6hWJUc28qPKkXuewYNAXYFc6/WMONYN2QxJH2/+INJrps/uPAyUfI+1TE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KXRljn2u; 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="KXRljn2u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4802DC4CEE7; Wed, 18 Jun 2025 11:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245430; bh=6ZY2hzz6/wTqlTbx1jFbwzXsniaWJtaFYA8rAicJv38=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KXRljn2urfThzIJZ9De3/UTdHsQstMgIkYXtiNJY3jWog8f3Xfrxjg06iRNlEM1Sl nwUMrxaxYByl+UEZXYVB2ou+l41RrzqbLfnxuAoPmDk0sH/N1hcdOxN47ClLMC4pi9 RPdFsS4cvHLs6liabQcuPwcxCM9UAgIArkCvo9jc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50230: arm64: set UXN on swapper page tables Date: Wed, 18 Jun 2025 13:04:55 +0200 Message-ID: <2025061850-CVE-2022-50230-034a@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=2073; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w0SuUQNENeMOsYv12PYdBD9je36e3bFG/DFPdlEisiI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+Yp3ptuVzLPgkPA9ffp5YcWGobvkXaOnrFi76x2U 6N7K8pPdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBETF4xzOFy4j32edLvp9t5 N7lu9k8ssL9s38mwYOPrizcXa93wknz38uet+/x7H/bkLwcA 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-50230 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 18107f8a2df6bf1c6cac8d0713f757f866d5af51 and fixed in 5.19.1 with commit 9283e708a9b8529e7aafac9ab5c5c79a9fab8846 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-50230 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/9283e708a9b8529e7aafac9ab5c5c79a9fab8846