Junglewise Threat Intelligence

CVE-2024-27437: Linux Kernel race condition in vfio/pci INTx IRQ handling

CVE-2024-27437 · Severity: medium · CVSS 5.5 · Published 2024-04-05

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's VFIO PCI driver could allow a local user to cause a permanent interruption of service for certain hardware devices. The issue affects how the system handles hardware interrupts for older devices or those with specific technical limitations. If exploited, the device could become unresponsive, potentially disrupting operations that rely on that specific hardware component.

Technical details

A race condition exists in the vfio/pci driver during the setup of exclusive INTx interrupts for devices without DisINTx support. In affected versions, the IRQ is enabled via request_irq() before being conditionally disabled to match the masked status flag. If an interrupt fires during this window, the disable depth can be incremented twice, creating a state that is unrecoverable for the user because the masked flag prevents nested enables. The fix involves using the IRQF_NO_AUTOEN flag to ensure the interrupt is not automatically enabled upon request, allowing the driver to safely unmask it only when required under proper locking.

Affected products

  • Linux Linux Kernel 3.6 to 6.1.84, 6.2 to 6.6.24, 6.7 to 6.7.12, 6.8 to 6.8.3

Timeline

  • 2024-04-05: advisory: Initial publication of CVE-2024-27437
  • 2024-03-29: patched: Fix committed to Linux stable tree

References

Related threats