CVE-2024-26812
JSON

7.8high

vfio/pci: Create persistent INTx handler

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Create persistent INTx handler A vulnerability exists where the eventfd for INTx signaling can be deconfigured, which unregisters the IRQ handler but still allows eventfds to be signaled with a NULL context through the SET_IRQS ioctl or through unmask irqfd if the device interrupt is pending. Ideally this could be solved with some additional locking; the igate mutex serializes the ioctl and config space accesses, and the interrupt handler is unregistered relative to the trigger, but the irqfd path runs asynchronous to those. The igate mutex cannot be acquired from the atomic context of the eventfd wake function. Disabling the irqfd relative to the eventfd registration is potentially incompatible with existing userspace. As a result, the solution implemented here moves configuration of the INTx interrupt handler to track the lifetime of the INTx context object and irq_type configuration, rather than registration of a particular trigger eventfd. Synchronization is added between the ioctl path and eventfd_signal() wrapper such that the eventfd trigger can be dynamically updated relative to in-flight interrupts or irqfd callbacks.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before b18fa894d615c8527e15d96b76c7448800e13899, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 27d40bf72dd9a6600b76ad05859176ea9a1b4897, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 4cb0d7532126d23145329826c38054b4e9a05e7c, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 7d29d4c72c1e196cce6969c98072a272d1a703b3, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 69276a555c740acfbff13fb5769ee9c92e1c828e, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 4c089cefe30924fbe20dd1ee92774ea1f5eca834, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 0e09cf81959d9f12b75ad5c6dd53d237432ed034, from 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153 before 18c198c96a815c962adc2b9b77909eec0be7df4d 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.3NVD
debian debian_linux10.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

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: Create persistent INTx handler A vulnerability exists where the eventfd for INTx signaling can be deconfigured, which unregisters the IRQ handler but still allows eventfds to be signaled with a NULL context through the SET_IRQS ioctl or through unmask irqfd if the device interrupt is pending. Ideally this could be solved with some additional locking; the igate mutex serializes the ioctl and config space accesses, and the interrupt handler is unregistered relative to the trigger, but the irqfd path runs asynchronous to those. The igate mutex cannot be acquired from the atomic context of the eventfd wake function. Disabling the irqfd relative to the eventfd registration is potentially incompatible with existing userspace. As a result, the solution implemented here moves configuration of the INTx interrupt handler to track the lifetime of the INTx context object and irq_type configuration, rather than registration of a particular trigger eventfd. Synchronization is added between the ioctl path and eventfd_signal() wrapper such that the eventfd trigger can be dynamically updated relative to in-flight interrupts or irqfd callbacks.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vfio/pci: crear un controlador INTx persistente Existe una vulnerabilidad donde se puede desconfigurar el eventfd para la señalización INTx, lo que anula el registro del controlador IRQ pero aún permite que los eventfds se señalen con un contexto NULL a través de el SET_IRQS ioctl o mediante unmask irqfd si la interrupción del dispositivo está pendiente. Idealmente, esto podría solucionarse con algún bloqueo adicional; el igate mutex serializa los accesos al espacio ioctl y de configuración, y el controlador de interrupciones no está registrado en relación con el disparador, pero la ruta irqfd se ejecuta de forma asincrónica con respecto a ellos. El mutex igate no se puede adquirir desde el contexto atómico de la función de activación eventfd. Deshabilitar el irqfd en relación con el registro de eventfd es potencialmente incompatible con el espacio de usuario existente. Como resultado, la solución implementada aquí mueve la configuración del controlador de interrupciones INTx para rastrear la vida útil del objeto de contexto INTx y la configuración irq_type, en lugar del registro de un evento desencadenante particular. Se agrega sincronización entre la ruta ioctl y el contenedor eventfd_signal() de modo que el disparador eventfd se pueda actualizar dinámicamente en relación con las interrupciones en curso o las devoluciones de llamada irqfd.

References

Sources

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