CVE-2026-46034: vfio/cdx: Fix NULL pointer dereference in interrupt trigger path
From: Greg Kroah-Hartman <[email protected]>
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