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 3F13F38AC92 for ; Thu, 3 Sep 2026 08:22:08 +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=1788423730; cv=none; b=SkZUyLy+oGbFd41ssIJVPOFXoNaz3V+J1SDjVPC3Tlu8ckfvxW7OjJgcFxPDu5///vgv3OFFGAFxG4ZdNMqLFdybZJC1K0lMGQR/rZZyQzK9+I+Hc1xZ9gyIqqqUrFBiBYAfyQPZSx1o6v9E/5ECSwA9xbn342R2WcfKRTnjv0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788423730; c=relaxed/simple; bh=oub0PkrvTOs7OIG8LxpLREjDsBY8ApT6ItbE2PH9NX0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t0d8WkKZCGDqy6m9X686hDe1C29ZjK3Y0cbA1Jw0ADXWEt0Vg1cNAbcoSahlLJXdBOHrApmhtbg5ndtl6p3DmLobI2Yzao/J55QAp0ZF6HHo96TViyE4KR5X+MRfT7smOL7QGHk+NfQ/iiISsRvxsfOVlsYI9szKW519IlTh/5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aOY0T2r+; 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="aOY0T2r+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 392AF1F000E9; Thu, 3 Sep 2026 08:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788423728; bh=jmFjNq0qozcFjT7UynM+U/niltdl5Oh8uabpPunGSXA=; h=From:To:Cc:Subject:Date:Reply-To; b=aOY0T2r+P0DiAXF92cxy/1lTufUzFQKCFKl2CxjBKw4xBzYeJ6zlSsy7FqXEq9bJk 3zSZd8MgjPN4TqBzmOiQELGhvxaKtnTy3LTU9UoKVyX2co83dYa73XPazcPAagQypr 2BY1rN9WyRC2QtE3D7AohKSe8qMrdTtRHkcmgt8U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80726: KVM: x86/mmu: WARN and clear role.invalid when creating a child shadow page Date: Thu, 3 Sep 2026 10:21:55 +0200 Message-ID: <2026090354-CVE-2026-80726-f53a@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=5166; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2i0SGrZRHpVD3hi9eCfx80Q0U6t38RNMxxYtNtmIPKA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkz9ZQTfbkjpjrN/G4SHL3szZtFKvMVL5qdet3S+2qCe B+LYRFrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEKZxhwe5b+q1dy5Peby29 YWZ0ZOaPLEfJVQzzFA94WcR13nl/6qDNNP4q9ZVxa+7/AAA= 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: x86/mmu: WARN and clear role.invalid when creating a child shadow page Explicitly clear role.invalid when deriving a child shadow page's role from its parent to harden against bugs elsewhere in KVM, as violating KVM's invariant that invalid pages are NOT on the list of active MMU pages leads to use-after-free due to __kvm_mmu_prepare_zap_page() using list_add() instead of list_move() when processing an invalid shadow page, i.e. makes a bad situation far worse. Yell loudly if the parent is invalid, as it means KVM has missed a validity check, i.e. KVM is attempting to map memory using an invalid/obsolete root, but continue on as the child is otherwise still a valid shadow page. ================================================================== BUG: KASAN: slab-use-after-free in __kvm_mmu_get_shadow_page+0x1817/0x1860 [kvm] Write of size 8 at addr ff11000153dd1368 by task repro/853 CPU: 1 UID: 1000 PID: 853 Comm: repro Not tainted 7.2.0-rc2-3aec122bdcaf-next-vm #5 PREEMPT Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 Call Trace: dump_stack_lvl+0x4b/0x70 print_report+0x153/0x49c kasan_report+0xbc/0xf0 __kvm_mmu_get_shadow_page+0x1817/0x1860 [kvm] mmu_alloc_root+0x141/0x320 [kvm] kvm_mmu_load+0x612/0x20f0 [kvm] kvm_arch_vcpu_ioctl_run+0x3dd5/0x6150 [kvm] kvm_vcpu_ioctl+0x5e4/0x10d0 [kvm] __x64_sys_ioctl+0x131/0x1b0 do_syscall_64+0x67/0x5f0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 Allocated by task 853: kasan_save_stack+0x20/0x40 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x5f/0x70 kmem_cache_alloc_noprof+0xfe/0x2e0 __kvm_mmu_topup_memory_cache+0x135/0x530 [kvm] paging64_page_fault+0x318/0x1e30 [kvm] kvm_mmu_do_page_fault+0x21d/0x630 [kvm] kvm_mmu_page_fault+0x18c/0x17b0 [kvm] kvm_arch_vcpu_ioctl_run+0x1f35/0x6150 [kvm] kvm_vcpu_ioctl+0x5e4/0x10d0 [kvm] __x64_sys_ioctl+0x131/0x1b0 do_syscall_64+0x67/0x5f0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 Freed by task 853: kasan_save_stack+0x20/0x40 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x43/0x70 kmem_cache_free+0xe2/0x400 kvm_mmu_commit_zap_page.part.0+0x1e2/0x310 [kvm] kvm_mmu_free_roots+0x283/0x560 [kvm] kvm_arch_vcpu_ioctl_run+0x33c8/0x6150 [kvm] kvm_vcpu_ioctl+0x5e4/0x10d0 [kvm] __x64_sys_ioctl+0x131/0x1b0 do_syscall_64+0x67/0x5f0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 The Linux kernel CVE team has assigned CVE-2026-80726 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit a770f6f28b1a9287189f3dc8333eb694d9a2f0ab and fixed in 6.1.183 with commit 9b7984692c18b22d6d61af3f53887fca7fddb0f1 Issue introduced in 2.6.30 with commit a770f6f28b1a9287189f3dc8333eb694d9a2f0ab and fixed in 6.6.152 with commit f33ecb89d352348ed5e625f6747ac51ede254e1b Issue introduced in 2.6.30 with commit a770f6f28b1a9287189f3dc8333eb694d9a2f0ab and fixed in 6.12.104 with commit 0af4711862c5b818204d40b21f0859ad51c230e9 Issue introduced in 2.6.30 with commit a770f6f28b1a9287189f3dc8333eb694d9a2f0ab and fixed in 6.18.45 with commit 66bc868a33cf1de43f22a94acd8857e0fe33393f Issue introduced in 2.6.30 with commit a770f6f28b1a9287189f3dc8333eb694d9a2f0ab and fixed in 7.1.9 with commit 9f7760a2e962cbda0d096a27d394d14ad4d22928 Issue introduced in 2.6.30 with commit a770f6f28b1a9287189f3dc8333eb694d9a2f0ab and fixed in 7.2 with commit 5ec42d57655c690234c14aece6dd3f209778c1d8 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-80726 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/x86/kvm/mmu/mmu.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/9b7984692c18b22d6d61af3f53887fca7fddb0f1 https://git.kernel.org/stable/c/f33ecb89d352348ed5e625f6747ac51ede254e1b https://git.kernel.org/stable/c/0af4711862c5b818204d40b21f0859ad51c230e9 https://git.kernel.org/stable/c/66bc868a33cf1de43f22a94acd8857e0fe33393f https://git.kernel.org/stable/c/9f7760a2e962cbda0d096a27d394d14ad4d22928 https://git.kernel.org/stable/c/5ec42d57655c690234c14aece6dd3f209778c1d8