Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6A6EF3D410E for ; Fri, 24 Apr 2026 14:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041848; cv=none; b=i4GU6M01ipYDXWd+yX8AlfEfA2nTBe3KdrJAV9Opza/Vm9TKBXNQ3QuReN6y9G8iC2yvr6bG8wMUygvFoYUluco7gx4zyPpWgrSSFijIyUJ1usUjOxnhE/62QcT3zjYj4SpJsW5R2EbRmfbcq2bzGPBDOAKyQbSJMa7LgkAB1/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041848; c=relaxed/simple; bh=J59m5SQDVn2WG8bwlQK3fZmCZ5RJlo35RmdMejqlNPE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aUSBMeV9XW2wTaFsirEKB/neCv1tGiRC8s4EReSII/fUTg8oOFwoYA++EOBpL3r23fdwFAPJFrZSaWzfnNjfxY+kQ+SKkq6zZbO13FZMB+PM51dFKyPZq1wshWs6jr8eA2TLv7QvQc/7Oh7h6KNxWZHgWnipUXl1v9pBZr6cv8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CazgeiBj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CazgeiBj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE241C19425; Fri, 24 Apr 2026 14:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041848; bh=J59m5SQDVn2WG8bwlQK3fZmCZ5RJlo35RmdMejqlNPE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=CazgeiBjaLOLfK0npT8wotaf7yJsQ0dvQSpp4QRGX0IbPhgCHCT3JVCF4LAgqDSAx qiO2aixke3m4wDYrqMoFPBRa35FUnMuvNsNV9gGvAGI3anlB9djzDoKvIGsUPqV54l 3Hh6IeiOjbZGKtrDETo/5JdSZnUDaAqBMu884nYU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31594: PCI: endpoint: pci-epf-vntb: Remove duplicate resource teardown Date: Fri, 24 Apr 2026 16:43:30 +0200 Message-ID: <2026042416-CVE-2026-31594-29aa@gregkh> X-Mailer: git-send-email 2.53.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=2692; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sJAr3PL90aAPYmcxJKKkbc0Mm1YhcSoCFyJhWlFF9KA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG1t07s/Oi7jVwGNuYjIvJXbeifQnHzX3Tz4Z/jZz0 R/B9FKxjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIsTzDgomH330PedS/Xagx baeDpPbZFxsk2xnm1yxW23tK0b6sdpGLs83Wpayhexf3AgA= 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: PCI: endpoint: pci-epf-vntb: Remove duplicate resource teardown epf_ntb_epc_destroy() duplicates the teardown that the caller is supposed to perform later. This leads to an oops when .allow_link fails or when .drop_link is performed. The following is an example oops of the former case: Unable to handle kernel paging request at virtual address dead000000000108 [...] [dead000000000108] address between user and kernel address ranges Internal error: Oops: 0000000096000044 [#1] SMP [...] Call trace: pci_epc_remove_epf+0x78/0xe0 (P) pci_primary_epc_epf_link+0x88/0xa8 configfs_symlink+0x1f4/0x5a0 vfs_symlink+0x134/0x1d8 do_symlinkat+0x88/0x138 __arm64_sys_symlinkat+0x74/0xe0 [...] Remove the helper, and drop pci_epc_put(). EPC device refcounting is tied to the configfs EPC group lifetime, and pci_epc_put() in the .drop_link path is sufficient. The Linux kernel CVE team has assigned CVE-2026-31594 to this issue. Affected and fixed versions =========================== Fixed in 6.18.24 with commit cec9ead73ab154a7953f6ab8dd5127e0d6bbf95a Fixed in 6.19.14 with commit 478e776101592eb63298714e96823ef78a3295ec Fixed in 7.0.1 with commit a7a3cab4d33fd8a8aed864c447d0d7c99e85404e 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-31594 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/pci/endpoint/functions/pci-epf-vntb.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/cec9ead73ab154a7953f6ab8dd5127e0d6bbf95a https://git.kernel.org/stable/c/478e776101592eb63298714e96823ef78a3295ec https://git.kernel.org/stable/c/a7a3cab4d33fd8a8aed864c447d0d7c99e85404e https://git.kernel.org/stable/c/0da63230d3ec1ec5fcc443a2314233e95bfece54