CVE-2026-46036: vfio/cdx: Serialize VFIO_DEVICE_SET_IRQS with a per-device mutex

Published May 27, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

vfio/cdx: Serialize VFIODEVICESETIRQS with a per-device mutex

vfiocdxsetmsitrigger() reads vdev->configmsi and operates on the vdev->cdxirqs array based on its value, but provides no serialization against concurrent VFIODEVICESETIRQS ioctls. Two callers can race such that one observes configmsi as set while another clears it and frees cdxirqs via vfiocdxmsidisable(), resulting in a use-after-free of the cdxirqs array.

Add a cdxirqslock mutex to struct vfiocdxdevice and acquire it in vfiocdxsetmsitrigger(), which is the single chokepoint through which all updates to configmsi, cdxirqs, and msicount flow, covering both the ioctl path and the close-device cleanup path. This keeps the test of configmsi atomic with the subsequent enable, disable, or trigger operations.

Drop the pre-call !cdxirqs test from vfiocdxirqscleanup() as part of this change: the optimization it provided is redundant with the !configmsi early-return inside vfiocdxmsidisable(), and leaving the test in place would be an unsynchronized read of state the new lock is meant to protect.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.10<6.12.86
Linux Linux kernel>=6.13<6.18.27
Linux Linux kernel>=6.19<7.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In vfio/cdx, add a cdx_irqs_lock mutex to struct vfio_cdx_device, acquire it in the IRQ enable/disable path (vfio_cdx_msi_disable()), and serialize related operations between VFIO_DEVICE_SET_IRQS ioctl handling and close-device cleanup to prevent concurrent free/use of cdx_irqs. As part of this change, drop the pre-call !cdx_irqs test from vfio_cdx_irqs_cleanup() so state is handled under the new lock.

    Linux kernel vfio/cdx vfio/cdx_irqs synchronization = add per-device cdx_irqs_lock mutex and use it

Event History

May 27, 2026
CVE Published
via MITRE·12:56 PM
Data Sourced
via MITRE·12:56 PM
DescriptionSeverity
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