Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 93E1E3A1684 for ; Sun, 19 Jul 2026 15:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473232; cv=none; b=p1pxf4OzIz9+QbcK7uqbixvlwda32vj0XwQ//SBWs3x2uL4GB/1JfJt9w7gtAHjGe0d8glYBBaT/dKhHmxl+N81s9gSxaNJgq0QzgHJRJ9EzJCzcTjqOIyCZGt7UxqoBYxIHg9Mu5Bdt00O3sMoyHPAmfYGyX2b+lBhgApZuXrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473232; c=relaxed/simple; bh=vtrqzR5vhrBJzAAzyOK7L0aH/Bpr51JZUi3F6FMvOrk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KAQeKyzBShEKs+YwWWkYV8mr24WYCnrtVTRnP71EsSfH0r5H7tFKEI07z1xJmJVu15AzgJs2XpqawJTVCRzMrsf3S57S+CJNagW52JNRjnpWlAdXJyPKJPXGM0pcFalKjLE/ixkpJ2ZV+V6vmHvc3IsOHcsAEeVxsx2emO99CoE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b5+iq4WV; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="b5+iq4WV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A66CC1F000E9; Sun, 19 Jul 2026 15:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473231; bh=KEOwAUBm+jFmN4wVYd3mPT6it/hynekFyEwCnxj5VDQ=; h=From:To:Cc:Subject:Date:Reply-To; b=b5+iq4WVt3b/bPclkWmdpMJUGB06JhQDfqSm7Rm96C91BHCrFNclNUGC0TUpQlPE0 /tjkOED9nkIuFkFjX5DGLDiNr9OiZE5i2hhW9XtqGUAIEcChB6Cq61Hd77G8yA187a S4yE0YtA/LIQNM5u0B75ofVkfYC153JIYFIBgTYM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63941: KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor Date: Sun, 19 Jul 2026 16:56:41 +0200 Message-ID: <2026071952-CVE-2026-63941-7aa3@gregkh> X-Mailer: git-send-email 2.55.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=3264; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6cWpdyByX+NlF7/3Jr2oJhZd25BORnWYgffmxEE10R8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxTyt3F/Pu/sgyJyT4f8CP7Ed75dndfz96JL9CfJ3ef ZOCWew/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BeAi9gzzlB6Y1GQH3/dd/WWm mfljbX8TyRehDPPsdnc6M75k0+ueMf3S5A677CV9XhoA 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: Correctly cap ZCR_EL2 provided by a guest hypervisor ZCR_EL2 can be updated by a VHE guest hypervisor either using ZCR_EL2 (which traps) or ZCR_EL1 (which does not trap). KVM handles both in different way: - on ZCR_EL2 trap, ZCR_EL2.LEN is immediately capped at the VM's own VL limit. This has the potential to break existing SW that relies on the full LEN field to be stateful. - on ZCR_EL1 access, we do absolutely nothing. On restoring the SVE context for an L2 guest, we directly restore the guest hypervisor's view of ZCR_EL2 into the physical ZCR_EL2. If the guest's view of the register was updated using the ZCR_EL2 accessor, the value has already been sanitised (with the caveat mentioned above). But if the guest used ZCR_EL1, the raw value is written into the HW, and the L2 guest can now access VLs that it shouldn't. Fix all the above by moving the VL capping to the restore points, ensuring that: - the HW is always programmed with a capped value, irrespective of the accessor being used, - the ZCR_EL2.LEN field is always completely stateful, irrespective of the accessor being used. Additionally, move ZCR_EL2 to be a sanitised register, ensuring that only the LEN field is actually stateful. This requires some creative construction of the RES0 mask, as the sysreg generation script does not yet generate RAZ/WI fields. [maz: rewrote commit message, tidy up access_zcr_el2()] The Linux kernel CVE team has assigned CVE-2026-63941 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit b3d29a8230998b36afecf494b199211d26052785 and fixed in 7.0.12 with commit 742a9b5ccd8c46caf983ca90c94f855466968e34 Issue introduced in 6.11 with commit b3d29a8230998b36afecf494b199211d26052785 and fixed in 7.1 with commit 83726330748981372bde86ed5411d7b306612991 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-63941 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/kvm_host.h arch/arm64/kvm/hyp/include/hyp/switch.h arch/arm64/kvm/nested.c arch/arm64/kvm/sys_regs.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/742a9b5ccd8c46caf983ca90c94f855466968e34 https://git.kernel.org/stable/c/83726330748981372bde86ed5411d7b306612991