В ядре Linux устранена следующая уязвимость:
Ice: добавить отсутствующий Ice_deinit_hw() в путь повторной инициализации devlink
devlink-reload приводит к ошибке Ice_init_hw, а затем удаляет
драйвер льда вызывает разыменование NULL-указателя.
[ +0.102213] лед 0000:ca:00.0: сбой Ice_init_hw: -16
...
[ +0,000001] Отслеживание вызовов:
[ +0,000003] <ЗАДАЧА>
[ +0.000006] Ice_unload+0x8f/0x100 [лед]
[ +0.000081] Ice_remove+0xba/0x300 [лед]
Зафиксируйте 1390b8b3d2be ("ice: удалите повторяющийся вызов Ice_deinit_hw() на
пути ошибок») удален Ice_deinit_hw() из Ice_deinit_dev(). В результате
Ice_devlink_reinit_down() больше не вызывает Ice_deinit_hw(), но
Ice_devlink_reinit_up() по-прежнему вызывает Ice_init_hw(). Поскольку контроль
очереди не неинициализируются, Ice_init_hw() завершается с ошибкой -EBUSY.
Добавьте Ice_deinit_hw() в Ice_devlink_reinit_down(), чтобы он соответствовал
Ice_init_hw() в Ice_devlink_reinit_up().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ice: add missing ice_deinit_hw() in devlink reinit path devlink-reload results in ice_init_hw failed error, and then removing the ice driver causes a NULL pointer dereference. [ +0.102213] ice 0000:ca:00.0: ice_init_hw failed: -16 ... [ +0.000001] Call Trace: [ +0.000003] <TASK> [ +0.000006] ice_unload+0x8f/0x100 [ice] [ +0.000081] ice_remove+0xba/0x300 [ice] Commit 1390b8b3d2be ("ice: remove duplicate call to ice_deinit_hw() on error paths") removed ice_deinit_hw() from ice_deinit_dev(). As a result ice_devlink_reinit_down() no longer calls ice_deinit_hw(), but ice_devlink_reinit_up() still calls ice_init_hw(). Since the control queues are not uninitialized, ice_init_hw() fails with -EBUSY. Add ice_deinit_hw() to ice_devlink_reinit_down() to correspond with ice_init_hw() in ice_devlink_reinit_up().
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18.2
|
6.18.8
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*
|
— | — |