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 24AAE33B95E for ; Wed, 22 Apr 2026 13:55:28 +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=1776866129; cv=none; b=MmY+msgx/22v9Up8wRv78hC9p9fFfIOX0Xm23jy1EqRnpgpAN2J4syV00nOhD8dE5sqoSMoD44KtbBVzGPEcB4U4F4ithB6Vkh+mo1cTJePpRKR0b0a8xT4qA45126S82T1+U7gBdD7vJTg6WPvBGU0CIKfjzGl+qDHSJhxpbZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866129; c=relaxed/simple; bh=txBI1qfKz3T25XaXZDW94WnQ3V2MNQHRJzLcTh8p4GI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=no4F9lhxA6jOnxjQfZ+QfXZMYEU7Ut9HnsiImTtYgPVobA8T3U2a+aqndKXXdkNtrZ0eOvJPD5o5/hXolyz9FeYlgg+ClsKOfVAwDTFx6Wmw9gET3st/xuxvgBf5SHb58fYbRizaAI/NOFd7GQjHb0iAFMFYIur453BDl6X3nrc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gdrVAh0l; 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="gdrVAh0l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 611E8C19425; Wed, 22 Apr 2026 13:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866128; bh=txBI1qfKz3T25XaXZDW94WnQ3V2MNQHRJzLcTh8p4GI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=gdrVAh0liPMrb/L1INCgoTd7KWL1DZD/hOyTGX8nSqxvTXM4zIMmjvbcfdt83lcu5 vEmVt9/bzyJpZtWA/02ll/Uz8ae/PKOfljYmJdBg6UCHjR0mQtWT9xnG4FbvfSX/s1 FzdTW1bKtIh4VQmSCJVKrQSteAkLd5icDZrZoZVc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31468: vfio/pci: Fix double free in dma-buf feature Date: Wed, 22 Apr 2026 15:54:14 +0200 Message-ID: <2026042253-CVE-2026-31468-13b8@gregkh> X-Mailer: git-send-email 2.54.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=2235; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VydHaUCAk70/uO/fssgHNQkyWX650N16EuUR4KeL/Ms=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLn1KPBv6uN3Xcmnw4cPJm41NFabtmLTi3d3QDzpSC 0ytn/b5dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEruUxzLP90feU/dO0MxqN 0tdjqw8+VX12S4NhQa/1BcX3LIseze+vneTBsEd627MLawA= 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: vfio/pci: Fix double free in dma-buf feature The error path through vfio_pci_core_feature_dma_buf() ignores its own advice to only use dma_buf_put() after dma_buf_export(), instead falling through the entire unwind chain. In the unlikely event that we encounter file descriptor exhaustion, this can result in an unbalanced refcount on the vfio device and double free of allocated objects. Avoid this by moving the "put" directly into the error path and return the errno rather than entering the unwind chain. The Linux kernel CVE team has assigned CVE-2026-31468 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 5d74781ebc86c5fa9e9d6934024c505412de9b52 and fixed in 6.19.11 with commit 83ad334afc9a645cef1062f5346526b1e36d6516 Issue introduced in 6.19 with commit 5d74781ebc86c5fa9e9d6934024c505412de9b52 and fixed in 7.0 with commit e98137f0a874ab36d0946de4707aa48cb7137d1c 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-31468 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/vfio/pci/vfio_pci_dmabuf.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/83ad334afc9a645cef1062f5346526b1e36d6516 https://git.kernel.org/stable/c/e98137f0a874ab36d0946de4707aa48cb7137d1c