CVE-2026-46034

vfio/cdx: Fix NULL pointer dereference in interrupt trigger path

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
Jun 14, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 848e447e000c41894ff931dc7c004fd42c8840f8 to before 51bf7638f33aece41cb3f4cbeb942cc52950e329Affected
  • 848e447e000c41894ff931dc7c004fd42c8840f8 to before 5d6c349c9823eb819fed8b537b088cf38126018cAffected
  • 848e447e000c41894ff931dc7c004fd42c8840f8 to before 338a736aaf15e8ba3635ce20b29af5b8fc15e66aAffected
  • 848e447e000c41894ff931dc7c004fd42c8840f8 to before 5ea5880764cbb164afb17a62e76ca75dc371409dAffected
LinuxLinux
  • 6.10Affected
  • before 6.10Not affected
  • 6.12.86 through 6.12.*Not affected
  • 6.18.27 through 6.18.*Not affected
  • 7.0.4 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.