Ad

CVE-2026-43324

HIGH CVSS 3.1: 7,8 EPSS 0.13%
Обновлено 17 июня 2026
Linux
Параметр Значение
CVSS 7,8 (HIGH)
Уязвимые версии 5.14 — 6.6.134
Устранено в версии 5.15.203
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: USB: dummy-hcd: исправить ошибку синхронизации прерываний. Это исправляет ошибку синхронизации в драйвере dummy-hcd. ошибка имеет довольно запутанную историю. Механизм синхронизации был представлен коммитом 7dbd8f4cabd9 («USB: dummy-hcd: исправить ошибочный изменение синхронизации»), что добавило эмулируемую «прерывания включены». флаг вместе с кодом, эмулирующим синхронизацию_irq() (он ждет, пока все текущие обратные вызовы обработчика вернулись).

Но эмулируемое отключение прерывания произошло слишком поздно, после того как драйвер содержащий процедуры обратного вызова обработчика, было сказано, что это было несвязанный, и обратные вызовы больше не будут выполняться. Зафиксируйте 4a5d797a9f9c ("usb: гаджет: dummy_hcd: исправить gpf в гаджет_сетупе") попытался это исправить с помощью перемещение кода эмуляцииsync_irq() из dummy_stop() в dummy_pullup(), который выполняется перед обратным вызовом отмены привязки. Однако гонки все же были, потому что эмулированное отключение прерываний все же произошло слишком поздно.

Его нельзя было переместить в dummy_pullup(), потому что эта процедура может быть вызвана по причинам, отличным от предстоящего развязать. Поэтому фиксирует 7dc0c55e9f30 («USB: ядро UDC: добавить udc_async_callbacks гаджет op») и 04145a03db9d («USB: UDC: реализовать udc_async_callbacks в dummy-hcd") добавлен API, позволяющий использовать ядро UDC. сообщить dummy-hcd, когда именно эмулируются прерывания и их обратные вызовы должен быть отключен. Это подводит нас к нынешнему положению вещей, которое по-прежнему неверно. потому что эмулируемая синхронизация_irq() происходит до эмулируемого прерывание-отключение! Это нехорошо, потому что это означает, что больше подражают прерывания могут возникать после запуска эмуляцииsync_irq(), что может привести к тому, что обработчик обратного вызова может работать, когда драйвер гаджета не привязан.

Чтобы исправить это, нам нужно еще переместить код эмуляцииsync_irq(). снова к процедуре dummy_udc_async_callbacks(), которая заботится о включение и отключение эмулируемых запросов на прерывание. синхронизация теперь будет выполняться сразу после эмулирования прерываний. отключено, и ему здесь место.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: USB: dummy-hcd: Fix interrupt synchronization error This fixes an error in synchronization in the dummy-hcd driver. The error has a somewhat involved history. The synchronization mechanism was introduced by commit 7dbd8f4cabd9 ("USB: dummy-hcd: Fix erroneous synchronization change"), which added an emulated "interrupts enabled" flag together with code emulating synchronize_irq() (it waits until all current handler callbacks have returned). But the emulated interrupt-disable occurred too late, after the driver containing the handler callback routines had been told that it was unbound and no more callbacks would occur. Commit 4a5d797a9f9c ("usb: gadget: dummy_hcd: fix gpf in gadget_setup") tried to fix this by moving the synchronize_irq() emulation code from dummy_stop() to dummy_pullup(), which runs before the unbind callback. There still were races, though, because the emulated interrupt-disable still occurred too late. It couldn't be moved to dummy_pullup(), because that routine can be called for reasons other than an impending unbind. Therefore commits 7dc0c55e9f30 ("USB: UDC core: Add udc_async_callbacks gadget op") and 04145a03db9d ("USB: UDC: Implement udc_async_callbacks in dummy-hcd") added an API allowing the UDC core to tell dummy-hcd exactly when emulated interrupts and their callbacks should be disabled. That brings us to the current state of things, which is still wrong because the emulated synchronize_irq() occurs before the emulated interrupt-disable! That's no good, beause it means that more emulated interrupts can occur after the synchronize_irq() emulation has run, leading to the possibility that a callback handler may be running when the gadget driver is unbound. To fix this, we have to move the synchronize_irq() emulation code yet again, to the dummy_udc_async_callbacks() routine, which takes care of enabling and disabling emulated interrupt requests. The synchronization will now run immediately after emulated interrupts are disabled, which is where it belongs.

Характеристики атаки

Способ атаки
Локальный
Нужен локальный доступ
Сложность
Низкая
Легко эксплуатировать
Нужны права
Низкие
Нужны базовые права
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Высокое
Полная утечка данных
Целостность
Высокое
Полная модификация данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1

Уязвимые продукты 13

Конфигурация От (включительно) До (исключительно)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.14 5.15.203
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.16 6.1.168
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.2 6.6.134
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.7 6.12.81
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.13 6.18.22
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.19 6.19.12
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
— —