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 D3C2730274D for ; Fri, 3 Apr 2026 13:28:43 +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=1775222923; cv=none; b=SHZ3nSpYI62KQHw5AT8iyveMRWx6W+3aBbvtWwBl1J0H1vMNHKAQlfaK17WLemAVAE00qRl5FCO7SfbfvhkBVXXC4KK/72Kwid2HgvBVYbRiptUj08fIKXpLyxh+6kZOndDKFuM9ePz6JIP3Bzk76p1XB4ibCa9tv3r1VfTAues= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775222923; c=relaxed/simple; bh=2e4X3iPoeZvYTChI49BR78QREq7gziEEx409MipWA7M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SE1e5eTin8NZAB2y20NB1qA8R0a2CcM2opIwIYuY777vrHSvtib3+e5uxl4x5FYb1uX6dsQQf836vfkaL4K2BOXl7fVJpnDm0u7Q8iGw0z8w9uZeXW29yUD438KLWirfWvFe16e4YWO7whqRpz5pzdmLSBAlEsbaW+UeF2n217U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oGhIhrvZ; 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="oGhIhrvZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1227AC4AF09; Fri, 3 Apr 2026 13:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775222923; bh=2e4X3iPoeZvYTChI49BR78QREq7gziEEx409MipWA7M=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oGhIhrvZcr4Lu2hpNo0K7XaZkgQ0U3xus4mTW4/LRG4EhSn2EigdI0xOJuMEa54m3 Kk0c6r/dC6uxYW4Uk/ASUNy2IcJ778x+k1JDKtcAyEvABdgR2zvS9qgfgoJAuSSYb1 Mg6TvQtZr9abL1+rG9u76SfPUg9Lb+oT+5lw0AVk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23425: KVM: arm64: Fix ID register initialization for non-protected pKVM guests Date: Fri, 3 Apr 2026 15:28:09 +0200 Message-ID: <2026040305-CVE-2026-23425-80db@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3213; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=V3zBFQ5DbfPWvCLHg2LqLxPmE3n0/Et+AbsWtrYl56I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnD6QKO1udLbsbfMshpUfgldJt2fVP399crWP0bUHSr CexrRyMHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRUx8Z5or7b6neohDI7hIU MMNpx28fidCpRQxzpTL26r/0Pv1FcsnhJdpNBYdcL71YDQA= 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: KVM: arm64: Fix ID register initialization for non-protected pKVM guests In protected mode, the hypervisor maintains a separate instance of the `kvm` structure for each VM. For non-protected VMs, this structure is initialized from the host's `kvm` state. Currently, `pkvm_init_features_from_host()` copies the `KVM_ARCH_FLAG_ID_REGS_INITIALIZED` flag from the host without the underlying `id_regs` data being initialized. This results in the hypervisor seeing the flag as set while the ID registers remain zeroed. Consequently, `kvm_has_feat()` checks at EL2 fail (return 0) for non-protected VMs. This breaks logic that relies on feature detection, such as `ctxt_has_tcrx()` for TCR2_EL1 support. As a result, certain system registers (e.g., TCR2_EL1, PIR_EL1, POR_EL1) are not saved/restored during the world switch, which could lead to state corruption. Fix this by explicitly copying the ID registers from the host `kvm` to the hypervisor `kvm` for non-protected VMs during initialization, since we trust the host with its non-protected guests' features. Also ensure `KVM_ARCH_FLAG_ID_REGS_INITIALIZED` is cleared initially in `pkvm_init_features_from_host` so that `vm_copy_id_regs` can properly initialize them and set the flag once done. The Linux kernel CVE team has assigned CVE-2026-23425 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 41d6028e28bd474298ff10409c292ec46cf43a90 and fixed in 6.18.17 with commit bce3847f7c51b86332bf2e554c9e80ca3820f16c Issue introduced in 6.14 with commit 41d6028e28bd474298ff10409c292ec46cf43a90 and fixed in 6.19.7 with commit 858620655c1fbff05997e162fc7d83a3293d5142 Issue introduced in 6.14 with commit 41d6028e28bd474298ff10409c292ec46cf43a90 and fixed in 7.0-rc2 with commit 7e7c2cf0024d89443a7af52e09e47b1fe634ab17 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-2026-23425 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/kvm/hyp/nvhe/pkvm.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/bce3847f7c51b86332bf2e554c9e80ca3820f16c https://git.kernel.org/stable/c/858620655c1fbff05997e162fc7d83a3293d5142 https://git.kernel.org/stable/c/7e7c2cf0024d89443a7af52e09e47b1fe634ab17