Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758162; b=2bCfNJ0Mdx4hZYaCYwt9fWZJzTVZ/QYh310OwRFUPK8FADyg1qtpZkulHfuMwm7IYlj0 KnFQevlZP86Uvub/35O6FgVvuGN0AAj5+SxcBegAz2rmHpNuQkyvDn3Y1vX3CLukxtdtS 33DORN4M4dw4qXwkxH2uufRTofVNuuHEZ6Y6qFgG/BtgvmE0nXSPDFael3QdY6sRnNKsk w53K9urIbJA+0Kp96oQtRKft9yPfy16Xi+XSWRdL7DjJ7/RVczLvxwepmWR3pvQJqoxhZ bMPOxT0IYubyOcYqyrS5z0jsGh/DVpx3EESDFdN5dLuKgAfWzFfEPizwn8kej7Oy8BQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758162; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=sP7OhxKTTwteZiPNQWvPS1kT7P1kEtcppsmAhF8GBZg=; b=iyekp1Njtr+1A+4WKSYvVwCvph7Sd/OO8ncceKB4mN6wfEgPZsm47IMA6UphU+P2aPeu MTR4rsdXxNFx4an/IgB7iOJOvwMZq1x/sIv17CDkhckGtAvVyaM+MYIt8c9bCkEwycYm1 zFpGJ0SsFVD7H9N3b56L6Hkvozye/x6oRzdHO8OGC13zGIR2r2XEeK+U1yvnkfTKdGLKm JNZBZ5D5nLts2dAW8QHmbW53w8Kn+Is0ezf4hcQVt3VokmbGpFOPulMzn6c6CdOfyx+Bs JZ+uFC1OH8BgcU75UngUNhuTYR2MshTppzmC9BffmTnnNG4qlyzSj/dXJW0dCHspWGA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=AshalQS5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5BAF606A31A for ; Fri, 23 Oct 2026 12:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=AshalQS5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DB4D1F01825; Fri, 23 Oct 2026 12:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758161; bh=sP7OhxKTTwteZiPNQWvPS1kT7P1kEtcppsmAhF8GBZg=; h=From:To:Cc:Subject:Date:Reply-To; b=AshalQS5AtuSIqEODRT/E3lC4IM5h1zikXx+gfGztfV/15FlysMuusduQ+edeVvgz Ct0GT24nbYqr86XoqbGXR+IfbEiPSA1TwGSejzm1WezPvCL4FAYlCuRbjhtv4WOVFD M6HgYeTotPbDhO0bQtlFXBTRpEO/M+t0ik5ap9Mw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98927: KVM: arm64: nv: Fix life cycle of the nested_mmus array Date: Fri, 23 Oct 2026 14:01:48 +0200 Message-ID: <2026102340-CVE-2026-98927-da06@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3432; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VEum3UhvA61rKFESefgSC4j6xr0TXRpo5baa4r3Wvzc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3fZbsqG05USq40G6Gx5R5/7rmZT6ZmyA3RbPvfLffh NJHHUd3d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEePIY5qkF79P/55dc32F/ 4tdvsQfac95MVWFYcGV38NLX247P2xu94mLI4dfi6ywktwIA 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: nv: Fix life cycle of the nested_mmus array The nested_mmus array holds the shadow page tables that are used when a guest is running a nested context. These structures are allocated on VCPU_INIT for whole guest, which implies that they may have to be relocated as the array grows. Should a VCPU_INIT occur whilst a vcpu is actively running an L2 and that the allocation requires relocation, that vcpu will still be running with a pointer to the previous structure, which will have been freed. Fix this by turning the array of structures to an array of pointers, which is now allocated at VM creation, sized to the absolute maximum that KVM can handle. In turn, each VCPU_INIT contributes S2_MMU_PER_VCPU to the pool. No reallocation is ever performed, and the life cycle of each object is much clearer: - the nested_mmus array is allocated in kvm_init_nested(), and freed in kvm_arch_destroy_vm() - s2_mmu structures are allocated in kvm_vcpu_init_nested(), and freed on kvm_arch_flush_shadow_all() Finally, the freeing of vcpu->arch.vncr_array is made consistent rather than being done on some failure paths, but not others. The Linux kernel CVE team has assigned CVE-2026-98927 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51 and fixed in 6.12.113 with commit ea242bdc29e8a8ff0e2447a64b3841114779f3af Issue introduced in 6.11 with commit 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51 and fixed in 6.18.56 with commit 81e3f065a6485626f816d791dfd5e00ddd12eff5 Issue introduced in 6.11 with commit 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51 and fixed in 7.2.9 with commit 512c93f4461b9a3735987f48423d438a9cd49e6a Issue introduced in 6.11 with commit 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51 and fixed in 7.3 with commit 33346f8960c7bb6a3b4e273b5cfe25c5a8be349f 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-98927 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/include/asm/kvm_nested.h arch/arm64/kvm/arm.c arch/arm64/kvm/nested.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/ea242bdc29e8a8ff0e2447a64b3841114779f3af https://git.kernel.org/stable/c/81e3f065a6485626f816d791dfd5e00ddd12eff5 https://git.kernel.org/stable/c/512c93f4461b9a3735987f48423d438a9cd49e6a https://git.kernel.org/stable/c/33346f8960c7bb6a3b4e273b5cfe25c5a8be349f