Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 454B03C0A02 for ; Wed, 27 May 2026 13:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886952; cv=none; b=VOLJX33HNTqAREylNBolTWhD7WMnIzoMmpMxtcUKXHuXSvSpRn7qxh/VI6ODLuCGjLus6Hjsq7bdEaIgxEszN+QWLJ+/w5g9Q2I0hWt5wmg3/SKr8vQj+KdClcme1q3xjeCeSKkL9uOu4gpyE7tpRIRed8jp9DLXajgiJv56/uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886952; c=relaxed/simple; bh=k19bMyet66ps8tTeuEawCX99JeeSLE36Y6yF7QQoI2s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qf1OU4qoClIelUNUjM1bDfGFlVjxy+6OIrmj8ZybFRDAdmqr7wioLzXlaYGUk8UBMwx8YCfGg6Ts4VraSmcVSuWkH7g/exeeD9vkMlw2f9X+7uCWCTY9kvL+/S/jKrrnHHoHletd2YYwuPrkQm+LGHZT4fJwPkxw7UrSKrdnTkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nQnLzLEo; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nQnLzLEo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C9DE1F00A3A; Wed, 27 May 2026 13:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886951; bh=QlWeC98z1IvPEDMH/T5HR+bTnYB6QWoNjG0N4KD/H10=; h=From:To:Cc:Subject:Date:Reply-To; b=nQnLzLEowa+AUZi5JV+ekmnsmoaLWaNGpK+oYgFc+DuD/agwikJZr0m49/kIETuAL 0K2cDoWE/Pvz0+BUrW9RRPVHYvyCKKQGbwA9hR9seyg8eb1ysSw6nSoRZMhXgVW2ku vbAc5EJ5Ae15Y0X4PaxIjOzyIKfrfI0VD+SXXaN0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46034: vfio/cdx: Fix NULL pointer dereference in interrupt trigger path Date: Wed, 27 May 2026 14:59:25 +0200 Message-ID: <2026052749-CVE-2026-46034-b4eb@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=2969; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rzE0yBbRthM2AXhegoJn9gkqoJoXcJ3N1PSpbqW4nvQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlirzq/6k3a3Cdu8s3g19WHs377Ccx+WM6qWp5/IG2b6 ue1H/Z5dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEatQZFqw9vsQ+lveuj7Lv QqcpTz9ffpRZ/ZdhQevnQ6291UdMQ6ImhL+oKjpuc/DCfwA= 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/cdx: Fix NULL pointer dereference in interrupt trigger path Add validation to ensure MSI is configured before accessing cdx_irqs array in vfio_cdx_set_msi_trigger(). Without this check, userspace can trigger a NULL pointer dereference by calling VFIO_DEVICE_SET_IRQS with VFIO_IRQ_SET_DATA_BOOL or VFIO_IRQ_SET_DATA_NONE flags before ever setting up interrupts via VFIO_IRQ_SET_DATA_EVENTFD. The vfio_cdx_msi_enable() function allocates the cdx_irqs array and sets config_msi to 1 only when called through the EVENTFD path. The trigger loop (for DATA_BOOL/DATA_NONE) assumed this had already been done, but there was no enforcement of this call ordering. This matches the protection used in the PCI VFIO driver where vfio_pci_set_msi_trigger() checks irq_is() before the trigger loop. The Linux kernel CVE team has assigned CVE-2026-46034 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 848e447e000c41894ff931dc7c004fd42c8840f8 and fixed in 6.12.86 with commit 51bf7638f33aece41cb3f4cbeb942cc52950e329 Issue introduced in 6.10 with commit 848e447e000c41894ff931dc7c004fd42c8840f8 and fixed in 6.18.27 with commit 5d6c349c9823eb819fed8b537b088cf38126018c Issue introduced in 6.10 with commit 848e447e000c41894ff931dc7c004fd42c8840f8 and fixed in 7.0.4 with commit 338a736aaf15e8ba3635ce20b29af5b8fc15e66a Issue introduced in 6.10 with commit 848e447e000c41894ff931dc7c004fd42c8840f8 and fixed in 7.1-rc1 with commit 5ea5880764cbb164afb17a62e76ca75dc371409d 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-46034 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/cdx/intr.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/51bf7638f33aece41cb3f4cbeb942cc52950e329 https://git.kernel.org/stable/c/5d6c349c9823eb819fed8b537b088cf38126018c https://git.kernel.org/stable/c/338a736aaf15e8ba3635ce20b29af5b8fc15e66a https://git.kernel.org/stable/c/5ea5880764cbb164afb17a62e76ca75dc371409d