CVE-2026-46034: vfio/cdx: Fix NULL pointer dereference in interrupt trigger path

Published May 27, 2026
·
Updated

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 cdxirqs array in vfiocdxsetmsitrigger(). Without this check, userspace can trigger a NULL pointer dereference by calling VFIODEVICESETIRQS with VFIOIRQSETDATABOOL or VFIOIRQSETDATANONE flags before ever setting up interrupts via VFIOIRQSETDATAEVENTFD.

The vfiocdxmsienable() function allocates the cdxirqs array and sets configmsi to 1 only when called through the EVENTFD path. The trigger loop (for DATABOOL/DATANONE) 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 vfiopcisetmsitrigger() checks irqis() before the trigger loop.

Affected Software

7 affected componentsFixes available
Linux Linux kernel (vfio/cdx)
Linux Linux kernel>=6.10<6.12.86
Linux Linux kernel>=6.13<6.18.27
Linux Linux kernel>=6.19<7.0.4
linux/kernel>=6.10.0<6.12.86
6.12.86
linux/kernel>=6.13.0<6.18.27
6.18.27
linux/kernel>=6.19.0<7.0.4
7.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Modify vfio_cdx_set_msi_trigger() to verify MSI is configured (e.g., check config_msi or irq_is()) before accessing the cdx_irqs array, matching the protection used by vfio_pci_set_msi_trigger().

    vfio/cdx kernel driver validate MSI configured before accessing cdx_irqs = enabled
  2. Compensating control

    Until the kernel is patched, restrict which processes/users can access the VFIO device nodes (for example by adjusting device node permissions, using cgroups, or SELinux/AppArmor policies) so untrusted users cannot issue VFIO_DEVICE_SET_IRQS ioctls.

  3. Operational

    Ensure userspace callers do not invoke VFIO_DEVICE_SET_IRQS with VFIO_IRQ_SET_DATA_BOOL or VFIO_IRQ_SET_DATA_NONE before setting up interrupts via VFIO_IRQ_SET_DATA_EVENTFD; update affected userspace code to perform the EVENTFD (interrupt setup) path first.

Event History

May 27, 2026
CVE Published
via MITRE·12:56 PM
Data Sourced
via MITRE·12:56 PM
Description
Data Sourced
via OSV·12:56 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203