В ядре Linux устранена следующая уязвимость:
vfio/pci: создать постоянный обработчик INTx. Существует уязвимость, из-за которой eventfd для сигнализации INTx может быть
деконфигурирован, что отменяет регистрацию обработчика IRQ, но все же позволяет
eventfds будет сигнализироваться с NULL-контекстом через SET_IRQS ioctl
или через демаскировку irqfd, если ожидается прерывание устройства. В идеале эту проблему можно решить с помощью дополнительной блокировки; игата
мьютекс сериализует доступ к ioctl и конфигурационному пространству, а прерывание
обработчик не зарегистрирован относительно триггера, но путь irqfd
работает асинхронно с ними.
Мьютекс igate не может быть получен из
атомарный контекст функции пробуждения eventfd. Отключение irqfd
относительно регистрации eventfd потенциально несовместимо с
существующее пользовательское пространство. В результате реализованное здесь решение перемещает конфигурацию
Обработчик прерываний INTx для отслеживания времени жизни объекта контекста INTx
и настройку irq_type, а не регистрацию конкретного
вызвать eventfd.
Добавлена синхронизация между путем ioctl и
оболочку eventfd_signal(), чтобы триггер eventfd мог быть
динамически обновляется относительно текущих прерываний или обратных вызовов irqfd.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.6
|
6.1.84
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.24
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.7.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.8.3
|
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
— | — |