CVE-2024-27437
JSON

5.5medium

vfio/pci: Disable auto-enable of exclusive INTx IRQ

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.32% (higher than 18% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Disable auto-enable of exclusive INTx IRQ Currently for devices requiring masking at the irqchip for INTx, ie. devices without DisINTx support, the IRQ is enabled in request_irq() and subsequently disabled as necessary to align with the masked status flag. This presents a window where the interrupt could fire between these events, resulting in the IRQ incrementing the disable depth twice. This would be unrecoverable for a user since the masked flag prevents nested enables through vfio. Instead, invert the logic using IRQF_NO_AUTOEN such that exclusive INTx is never auto-enabled, then unmask as required.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 26389925d6c2126fb777821a0a983adca7ee6351, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 561d5e1998d58b54ce2bbbb3e843b669aa0b3db5, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before b7a2f0955ffceffadfe098b40b50307431f45438, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 139dfcc4d723ab13469881200c7d80f49d776060, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 2a4a666c45107206605b7b5bc20545f8aabc4fa2, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 3b3491ad0f80d913e7d255941d4470f4a4d9bfda, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before bf0bc84a20e6109ab07d5dc072067bd01eb931ec, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before fe9a7082684eb059b925c535682e68c34d487d43 and 1 more
Not affected: before 3.6, from 5.4.274 up to 5.4.*, from 5.10.215 up to 5.10.*, from 5.15.154 up to 5.15.*, from 6.1.84 up to 6.1.*, from 6.6.24 up to 6.6.*
CVE List
linux linux_kernelfrom 3.6 before 6.1.84, from 6.2 before 6.6.24, from 6.7 before 6.7.12, from 6.8 before 6.8.3, from 6.8.4 up to 6.8.12NVD
debian debian_linux10.0NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Disable auto-enable of exclusive INTx IRQ Currently for devices requiring masking at the irqchip for INTx, ie. devices without DisINTx support, the IRQ is enabled in request_irq() and subsequently disabled as necessary to align with the masked status flag. This presents a window where the interrupt could fire between these events, resulting in the IRQ incrementing the disable depth twice. This would be unrecoverable for a user since the masked flag prevents nested enables through vfio. Instead, invert the logic using IRQF_NO_AUTOEN such that exclusive INTx is never auto-enabled, then unmask as required.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vfio/pci: deshabilita la habilitación automática de INTx IRQ exclusivo. Actualmente, para dispositivos que requieren enmascaramiento en el irqchip para INTx, es decir. En dispositivos sin soporte DisINTx, la IRQ se habilita en request_irq() y posteriormente se deshabilita según sea necesario para alinearse con el indicador de estado enmascarado. Esto presenta una ventana donde la interrupción podría dispararse entre estos eventos, lo que hace que la IRQ incremente la profundidad de desactivación dos veces. Esto sería irrecuperable para un usuario ya que el indicador enmascarado impide las habilitaciones anidadas a través de vfio. En su lugar, invierta la lógica usando IRQF_NO_AUTOEN de modo que INTx exclusivo nunca se habilite automáticamente, luego desenmascare según sea necesario.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-27437 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-27437 changed 2026-10-15Public domain