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=1795099042; b=jCdRNMTvmd64hN5oTvpAzosTQrlDgBV6y7qo1c7vhx9VDuMWOvyggIYlroo/07k0TGAY /ziVrzJkxpGW1NcCbr+0HDDDsCtTfO4QJNlBE79xFMHpOASgpO1xcGjwG9R39aUg4UKYe LN4VowsLqgFQdUeGl6j4+x+xRRHFqAzWjXbqlNc7DsQoUBB0Gjf/Yd+gzkw0M39DbHMOj eavvsPzo0lgruE/xQ7xoYYEivmpDJCWefpzlq2d+xmdSKO2LtwS/VR/WsGyEqXvPq3EMJ vF4aR2nyRr7knMhU2ZdhiLxY/o7vZ3uFP/0M1sNgoRomY8HQjH89ZsIqL2CIO+nDRZw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099042; 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=y6PjQPrJHrBT/bm7lqMyY/ac76cCutH7oNfObikkSrw=; b=Qu5CfcjaXSX5dGyxBOAhw4T2qIhTlG2TsHPDghNRpKMFRfnYmoYXX3wYuAhAOtM0pPgZ P9QksZI3f7uGXWX6jjSpSeRR1nLDdJBFvWT1SkhtvIBnv3jivefnwo4MYhIEVjUaJtQXs CyEa53KTXF7UYVdhvx5a3JKznb7CMnCQ+kF0Jwmb4cqgaXXxsKN5ec5ez28lABOTr/dB3 8n29gA83nFZYoz8ZJkfsjCi3rADcmr7JqlTm3mldfrnuV6Qrepnt+nmDGqApQ6JZD5qc8 FLJTJUTMJHuPnFSlqfmktvpd5C/CRjcqb+3KfE7kHVwn5VIXppzEd5u9x8+cgOXNvpA== 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=arwON8cg; 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 2EC3B606A324 for ; Thu, 19 Nov 2026 14:37:21 +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=arwON8cg Received: by smtp.kernel.org (Postfix) with ESMTPSA id 016B31F000C6; Thu, 19 Nov 2026 14:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099041; bh=y6PjQPrJHrBT/bm7lqMyY/ac76cCutH7oNfObikkSrw=; h=From:To:Cc:Subject:Date:Reply-To; b=arwON8cgmeMVmAdTb6tbqF32w4J1yqjuSono8K039l88KnUFYLOF63QHpOSeAsqvD cfdJ5bqFFrSw5HmjeeZRFsPsQCGy7ODb/Cuyun1Rpqos5Wem2xd4/e4Mglmo/Bk/E8 2owkmiBHx6OmmJhelHzEcNKSorPDTx8wnjCFibK8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99335: KVM: guest_memfd: Establish memslot<=>guest_memfd bindings *after* memslot is ready Date: Thu, 19 Nov 2026 15:23:53 +0100 Message-ID: <2026111945-CVE-2026-99335-c6a8@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=2753; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WThJWwKU/k2/K2vwrb+N3TTsfuIhBPxZIhoM0lsoEwM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Qq9gm9eqOK9NGUq12SDdbKT/J7+4Hwkfm+7kI2H9 fEvJ62ndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1skzzC9qfP78Yd/97hpD 6Q26HxXev3qT4scwz3IxCyNT9kt/9f9bv4vI8M/ae/K7GAA= 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: guest_memfd: Establish memslot<=>guest_memfd bindings *after* memslot is ready Wait to bind a memslot to a guest_memfd instance until *after* the memslot is fully prepared, as creating the binding in guest_memfd will effectively expose the memslot to readers. As pointed out by Sashiko, binding the memslot before it's ready to be exposed to the rest of the world can break various memslot assumption and rules. E.g. x86 could observe a NULL rmap pointer if a PUNCH_HOLE hit the guest_memfd after the binding was created, but before KVM made it through kvm_prepare_memory_region(). The Linux kernel CVE team has assigned CVE-2026-99335 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit a7800aa80ea4d5356b8474c2302812e9d4926fa6 and fixed in 6.12.118 with commit 698f807aa8df9414fdc23d9ea454f4883b5b08ff Issue introduced in 6.8 with commit a7800aa80ea4d5356b8474c2302812e9d4926fa6 and fixed in 6.18.64 with commit dc0cb5d30647b22a3da252a2847ed8f6afb5d567 Issue introduced in 6.8 with commit a7800aa80ea4d5356b8474c2302812e9d4926fa6 and fixed in 7.3.2 with commit fd224f1778e13660aec4e1f51fcdaeab5794e7ee Issue introduced in 6.8 with commit a7800aa80ea4d5356b8474c2302812e9d4926fa6 and fixed in 7.4-rc1 with commit 3fe5d2944e5ac3fc5073344b0982c73703332e18 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-99335 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: virt/kvm/kvm_main.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/698f807aa8df9414fdc23d9ea454f4883b5b08ff https://git.kernel.org/stable/c/dc0cb5d30647b22a3da252a2847ed8f6afb5d567 https://git.kernel.org/stable/c/fd224f1778e13660aec4e1f51fcdaeab5794e7ee https://git.kernel.org/stable/c/3fe5d2944e5ac3fc5073344b0982c73703332e18