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=1795099091; b=OEb5of/0rgaHnUz90qa4fw0J+ob3YfuZB1vCF6q0X4usWsD9e7NgYqZqxFvChYqk/kVF gElBi7xvPZDTwMfYX3CVRUTWPaoLD7aYTPhlXEOowUoYZA9E+D8RgxD5Y1NIbKNUnpA3E FDz8KYY2g5l0NTDPqWuqRTL++aRWhQpaN2P0AIhL34bLtFfjZMCBof+GSqnv7FVh4tOeL IzA7/L0kkmkj90y30PFuF9vGBqeAk51GeDF/Q4X65BdIfyUdp+BOoqp6M3fy4kH1vpIuW UKfsw3mxw1ZgWHe76jYwVdHyKumfNVKXPukqLLppAgPLIG9eUlqb7NyQhgNThjJj0vQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099091; 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=o8OP3ld9sZEGwiZfcy0KmXY0TbD5898+Ux2+AfOaljY=; b=fL80BgcupnBOGfkxGU5Tif4ND4br5PBNt4sO8lQPOVDREwepZ+BlguyPKqdCk0ImVJhT GwpC/9Q29zkPIRhFTUGjZP55xGyqquHy0+vkwFATnNwxp2ZWQ9m/FnEqbp5VtaRW7NeZc o6qqa0Z8KZMTK2lpEhfSzFqbYtc1BmiKZBJdXY6ItFrrJ+6nVXXs6895m9mE3qtOAH3si nzSPIiYp3qI3kDhRdoV/+b7leNtqPj7iN+SAPlqsS93n2Gy0K1eSFOliAWPSXYVXx0Nxe h+5Q0yKrsdZKY2moCb4EG2e0gj8QNVUwgaLnlUeOmeIZjpW7xjB5xz+3TCEi0NiRGtw== 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=TMlLr77w; 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 CE697606A320 for ; Thu, 19 Nov 2026 14:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TMlLr77w Received: by smtp.kernel.org (Postfix) with ESMTPSA id D687F1F000C4; Thu, 19 Nov 2026 14:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099091; bh=o8OP3ld9sZEGwiZfcy0KmXY0TbD5898+Ux2+AfOaljY=; h=From:To:Cc:Subject:Date:Reply-To; b=TMlLr77wkMhp2+Ov6mxAgO7DWIeTcxvz4d82ne7rKDVsDXF1jXo858sC5DznNAKE1 9OQC82GgiX98ddzB7RoHZqbyDteg0XXT2ENJ0JIbMIKgMix9ROBkQZoExAb8+DJLs8 ekiV7L6gO8PSbnDMxZCooZmZ7j/AM1Jej/D/inOM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99340: KVM: x86: Take SRCU in kvm_zap_gfn_range() Date: Thu, 19 Nov 2026 15:23:58 +0100 Message-ID: <2026111946-CVE-2026-99340-2dd6@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=3186; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p/uxDhy9fkeOgX9eFwLHpfJ0kRGMOaeeiVIDH2outBs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Yqmna07ZPszqI4tU+98xL9mPs3z/xJ/B0/VirdS9 Zkf463YEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPh/cowh69jzlHxnZe2vXH3 lnA6/bu+wm37ZYbZrE/ZNqkcffw1bz1f7K2PNyYLXl+ZCgA= 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: Take SRCU in kvm_zap_gfn_range() kvm_zap_gfn_range() walks memslots and rmaps and may drop mmu_lock to reschedule. Callers that do not already hold kvm->srcu (or slots_lock) can race with memslot deletion: synchronize_srcu_expedited() does not wait, kvm_free_memslot() frees the old slot and its rmap, and the zap resumes on freed memory. The VFIO noncoherent-DMA path hits this by zapping the entire GPA space without SRCU. KASAN reported: BUG: KASAN: vmalloc-out-of-bounds in slot_rmap_walk_next+0x82/0x1c0 Read of size 8 at addr ffffc900005c1008 Call Trace: slot_rmap_walk_next+0x82/0x1c0 __kvm_rmap_zap_gfn_range+0x17a/0x280 kvm_zap_gfn_range+0x2a6/0x6a0 kvm_vfio_set_attr+0x576/0x770 kvm_device_ioctl+0x1ff/0x3b0 Take SRCU inside kvm_zap_gfn_range() so every caller is covered. Nesting with an existing kvm->srcu critical section is fine; the helper uses a local index. Drop the now-redundant SRCU pair from __kvm_set_or_clear_apicv_inhibit(). The Linux kernel CVE team has assigned CVE-2026-99340 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 362ff6dca5416e20646badf09394b9a8bfc000db and fixed in 6.12.117 with commit 9d119b4921ac74bc606917fd274c10c966fa5b72 Issue introduced in 6.7 with commit 362ff6dca5416e20646badf09394b9a8bfc000db and fixed in 6.18.61 with commit ec9df57c8e00f189d58d927cc9a1f49592f687af Issue introduced in 6.7 with commit 362ff6dca5416e20646badf09394b9a8bfc000db and fixed in 7.3.2 with commit e34057e59ed784a37657835aac9f54eec0864342 Issue introduced in 6.7 with commit 362ff6dca5416e20646badf09394b9a8bfc000db and fixed in 7.4-rc1 with commit b59a87c1ba3c347e8aec5f932eb7abf13064fd62 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-99340 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 arch/x86/kvm/x86.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/9d119b4921ac74bc606917fd274c10c966fa5b72 https://git.kernel.org/stable/c/ec9df57c8e00f189d58d927cc9a1f49592f687af https://git.kernel.org/stable/c/e34057e59ed784a37657835aac9f54eec0864342 https://git.kernel.org/stable/c/b59a87c1ba3c347e8aec5f932eb7abf13064fd62