{"id":"CVE-2026-46036","published":"2026-05-27T12:56:46Z","modified":"2026-08-05T12:29:15Z","title":"vfio/cdx: Serialize VFIO_DEVICE_SET_IRQS with a per-device mutex","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/cdx: Serialize VFIO_DEVICE_SET_IRQS with a per-device mutex\n\nvfio_cdx_set_msi_trigger() reads vdev->config_msi and operates on the\nvdev->cdx_irqs array based on its value, but provides no serialization\nagainst concurrent VFIO_DEVICE_SET_IRQS ioctls.  Two callers can race\nsuch that one observes config_msi as set while another clears it and\nfrees cdx_irqs via vfio_cdx_msi_disable(), resulting in a use-after-free\nof the cdx_irqs array.\n\nAdd a cdx_irqs_lock mutex to struct vfio_cdx_device and acquire it in\nvfio_cdx_set_msi_trigger(), which is the single chokepoint through\nwhich all updates to config_msi, cdx_irqs, and msi_count flow, covering\nboth the ioctl path and the close-device cleanup path.  This keeps the\ntest of config_msi atomic with the subsequent enable, disable, or\ntrigger operations.\n\nDrop the pre-call !cdx_irqs test from vfio_cdx_irqs_cleanup() as part\nof this change: the optimization it provided is redundant with the\n!config_msi early-return inside vfio_cdx_msi_disable(), and leaving the\ntest in place would be an unsynchronized read of state the new lock is\nmeant to protect.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00139,"percentile":0.03217,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ddf96e23c366c566283fce8377928851fa7f5e81","tags":[]},{"url":"https://git.kernel.org/stable/c/7b436ade16cc81095d79b79f8efa3af0a4f5c5a2","tags":[]},{"url":"https://git.kernel.org/stable/c/7530f34ec0ca1438d45a75dcb43183a1cc92eced","tags":[]},{"url":"https://git.kernel.org/stable/c/670e8864b1a218d72f08db40d0103adf38fa1d9b","tags":[]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":0.64},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 848e447e000c41894ff931dc7c004fd42c8840f8, < ddf96e23c366c566283fce8377928851fa7f5e81",">= 848e447e000c41894ff931dc7c004fd42c8840f8, < 7b436ade16cc81095d79b79f8efa3af0a4f5c5a2",">= 848e447e000c41894ff931dc7c004fd42c8840f8, < 7530f34ec0ca1438d45a75dcb43183a1cc92eced",">= 848e447e000c41894ff931dc7c004fd42c8840f8, < 670e8864b1a218d72f08db40d0103adf38fa1d9b"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"euvd":{"id":"EUVD-2026-32417","exploited":false,"provenance":"source"}}