В ядре Linux устранена следующая уязвимость: ice: fix NULL access of tx->in_use В версиях ice_ll_ts_intr Recent прошивки E810 поддерживается дополнительное прерывание для обработки сообщения о «низкой задержке» временных меток Tx, поступающих со специализированного интерфейса прошивки с низкой задержкой. Вместо опроса регистров программное обеспечение может ждать, пока прерывание с низкой задержкой не будет запущено. Эта логика использует структуру отслеживания временных меток Tx, ice_ptp_tx, поскольку она использует ту же растровую карту «ready», чтобы отслеживать, какие временные метки Tx завершаются.
К сожалению, функция ice_ll_ts_intr() не проверяет инициализацию трекера перед его первым доступом. Это приводит к появлению ошибок NULL или use-after-free, похожих на проблемы, исправленные в функции ice_ptp_ts_irq (). Исправьте это, только проверив растровую карту 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_ll_ts_intr Recent versions of the E810 firmware have support for an extra interrupt to handle report of the "low latency" Tx timestamps coming from the specialized low latency firmware interface. Instead of polling the registers, software can wait until the low latency interrupt is fired. This logic 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_ll_ts_intr() 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 issues fixed in the ice_ptp_ts_irq() function. 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)
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.12.46
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
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:*:*:*:*:*:*
|
— | — |