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=1792758493; b=D1F725LQIs0ATAqGvkVuRRapjxDko3HpmX5cwWkuo00FMLGlLJTIwH0s6tWlnJGN+6Nn sq4uf7mG+NAvdxORp+VY2nIvcnoqYluX02sbYqLFckAn9DdSmpYKQl+ztBhDzvcVbCiI2 mwXpbTszUg12IZrWyBU84bWa1ZUEqjFqmji6jh9VY2RtJWPtah/1bUCo+mZLhHMkJWUZZ GpfXqM/D9ZdpkFRyns2Rs8ZexyBlYe/V7u+H40hjbdv7M6x1Yi8dWFqd4wcv0vi65nK91 sH3ZYnKxfNb2SIvYShx/ixxJimfe3U9DFQCL9ggw9rH9Vm4fNcsNuJXCkx5ojvgArbw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758493; 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=TrgLyteieX9Ks6IAjXIzVOcmYZ3wltGnh/ZEJuYatXI=; b=3J2ydqT1rXjGMEy0IrlmyAauyElG5p24M/zbz8VYzZsXJ3quzYp9pOPeWh7LPGNOAkOT RAN3WLxEoR3KyuiKwUHEz1/ebCVrvEcNCTtGjGP7W2mpUCdXjWuAtIe0vNoAkNkABxpkY dKYzSkvAQLMzh2tQPlCsq/Vdr3hRtb0cJ/aMUHXCOkyskbbtNKRnU104t1HwbIX9BEcpt NW5pPNp9jYx9cIzaCzlCB+n3qNtHD/ubFJss37Qq1i8FrmgmLiHz9MHC5NSpn4NAS5K5N hKKB3nyTdb2pDDS6a4D6B3riEzqju305UtE+/X1NjRJfgtrbQLKJXDjEScX0OGESOJw== 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=cBYAKrgd; 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 D77F3606A327 for ; Fri, 23 Oct 2026 12:28:12 +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=cBYAKrgd Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2D8D1F01828; Fri, 23 Oct 2026 12:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758492; bh=TrgLyteieX9Ks6IAjXIzVOcmYZ3wltGnh/ZEJuYatXI=; h=From:To:Cc:Subject:Date:Reply-To; b=cBYAKrgdq4i6GNVBuXha6Eenm5T8cihychwmdk/S92TpUGwnGw0Bh9vnh+1MD6ZoR 9LFkHhQrY+dRh+baF3bZPuHJmlPmJ5P1Fo2yKQiVVoz5vI8GKidEpu85x2e1qaELjQ jz+RbwNAC2xoUrHJFQDN0FIErqo4WSN8QbsF1PzI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98964: nvmet: use the local P2P device on metadata allocation failure Date: Fri, 23 Oct 2026 14:19:26 +0200 Message-ID: <2026102309-CVE-2026-98964-d49c@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=3016; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gpwkY7tP4ZfhPQvpBj4RY82Uzrz7ks/NrqfZUbvbMsY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A/ayusm4/G05/+hhi4nO1LdtP783/tNiPO958yODw xKxLYs+dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBElvcxzHfTmBodfEYksexs HcvG4498XuZWPWaYX/pOIvBUSNzJyl1vprayryx52lb1CAA= 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: nvmet: use the local P2P device on metadata allocation failure nvmet_req_alloc_p2pmem_sgls() assigns req->p2p_dev only after the data and metadata SGL allocations succeed. If the data allocation succeeds but the metadata allocation fails, out_free_sg passes req->p2p_dev to pci_p2pmem_free_sgl() before that assignment has taken place. Pass the local p2p_dev argument instead, so cleanup uses the same PCI device as the successful data allocation. The Linux kernel CVE team has assigned CVE-2026-98964 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit bcd9a0797d73eeff659582f23277e7ab6e5f18f3 and fixed in 6.6.160 with commit 3c231142c4f4bb96836469eb276026ec55940093 Issue introduced in 5.13 with commit bcd9a0797d73eeff659582f23277e7ab6e5f18f3 and fixed in 6.12.113 with commit 32f21607911a1f69c8f0f93a6c28fe6f8490aa98 Issue introduced in 5.13 with commit bcd9a0797d73eeff659582f23277e7ab6e5f18f3 and fixed in 6.18.57 with commit ce79a6c5cc1b8054ec8d3eba16adda4a36113438 Issue introduced in 5.13 with commit bcd9a0797d73eeff659582f23277e7ab6e5f18f3 and fixed in 7.2.11 with commit 73bf0f9579633b531098a475e6e55c9316763aed Issue introduced in 5.13 with commit bcd9a0797d73eeff659582f23277e7ab6e5f18f3 and fixed in 7.3 with commit 4aa9c0f377a4de5e8fddce76b34ee4529639a1ff Issue introduced in 5.10.43 with commit c440cd080761b18a52cac20f2a42e5da1e3995af Issue introduced in 5.12.10 with commit 8a452d62e7cea3c8a2676a3b89a9118755a1a271 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-98964 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: drivers/nvme/target/core.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/3c231142c4f4bb96836469eb276026ec55940093 https://git.kernel.org/stable/c/32f21607911a1f69c8f0f93a6c28fe6f8490aa98 https://git.kernel.org/stable/c/ce79a6c5cc1b8054ec8d3eba16adda4a36113438 https://git.kernel.org/stable/c/73bf0f9579633b531098a475e6e55c9316763aed https://git.kernel.org/stable/c/4aa9c0f377a4de5e8fddce76b34ee4529639a1ff