В ядре Linux устранена следующая уязвимость: ice: fix NULL access of tx->in_use В устройстве ice_ptp_ts_irq The E810 поддерживается интерфейс прошивки с «низкой задержкой» для доступа и чтения меток времени Tx. Этот интерфейс не использует стандартную логику метки времени Tx, из-за задержки прокси-запросов боковых команд над прошивкой AdminQ. Логика по-прежнему использует структуру отслеживания меток времени Tx, ice_ptp_tx, поскольку она использует ту же растровую карту «ready», чтобы отслеживать, какие метки времени Tx завершаются.
К сожалению, функция ice_ptp_ts_irq() не проверяет инициализацию трекера перед его первым доступом. Это приводит к ошибкам NULL или use-after-free, подобным следующим: [245977.278756] BUG: kernel NULL pointer dereference, address: 0000000000000000 [245977.278774] RIP: 0010:_find_first_bit+0x19/0x40 [245977.278796] Call Trace: [245977.278809] ? ice_misc_intr+0x364/0x380 [ice] Это может произойти, если метка времени Tx прерывает гонки с логикой сброса драйверов. Исправьте это, только проверив растровую карту in_use (и другие поля), если трекер помечен как инициализированный.
Поток сброса очистит поле init под замком, прежде чем он разорвет трекер, тем самым предотвращая любой доступ use-after-free или NULL.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ice: fix NULL access of tx->in_use in ice_ptp_ts_irq The E810 device has support for a "low latency" firmware interface to access and read the Tx timestamps. This interface does not use the standard Tx timestamp logic, due to the latency overhead of proxying sideband command requests over the firmware AdminQ. The logic still makes use of the Tx timestamp tracking structure, ice_ptp_tx, as it uses the same "ready" bitmap to track which Tx timestamps complete. Unfortunately, the ice_ptp_ts_irq() function does not check if the tracker is initialized before its first access. This results in NULL dereference or use-after-free bugs similar to the following: [245977.278756] BUG: kernel NULL pointer dereference, address: 0000000000000000 [245977.278774] RIP: 0010:_find_first_bit+0x19/0x40 [245977.278796] Call Trace: [245977.278809] ? ice_misc_intr+0x364/0x380 [ice] This can occur if a Tx timestamp interrupt races with the driver reset logic. Fix this by only checking the in_use bitmap (and other fields) if the tracker is marked as initialized. The reset flow will clear the init field under lock before it tears the tracker down, thus preventing any use-after-free or NULL access.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
6.16.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*
|
— | — |