В ядре Linux устранена следующая уязвимость:
net: mana: добавьте NULL-защитники в путь удаления, чтобы предотвратить панику при сбое подключения. Если на этапе выделения очереди происходит сбой, очистка ошибок освобождает
и NULL-значения apc->tx_qp и apc->rxqs. Несколько путей демонтажа, таких как
mana_remove(), восстановление mana_change_mtu() и внутренняя обработка ошибок
в mana_alloc_queues() впоследствии можно вызывать функции, которые
разыменуйте эти указатели без проверок NULL:
- mana_chn_setxdp() разыменовывает apc->rxqs[0], вызывая NULL-указатель
паника разыменования (CR2: 0000000000000000 в mana_chn_setxdp+0x26).
- mana_destroy_vport() выполняет итерацию apc->rxqs без проверки NULL.
- mana_fence_rqs() выполняет итерацию apc->rxqs без проверки NULL.
- mana_dealloc_queues() выполняет итерацию apc->tx_qp без проверки NULL.
Добавьте NULL-защиты для apc->rxqs в mana_fence_rqs(),
mana_destroy_vport() и перед вызовом mana_chn_setxdp(). Добавить
NULL-защита для apc->tx_qp в mana_dealloc_queues() для пропуска очереди TX
слив, когда очереди TX никогда не были выделены или уже освобождены.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: mana: Add NULL guards in teardown path to prevent panic on attach failure When queue allocation fails partway through, the error cleanup frees and NULLs apc->tx_qp and apc->rxqs. Multiple teardown paths such as mana_remove(), mana_change_mtu() recovery, and internal error handling in mana_alloc_queues() can subsequently call into functions that dereference these pointers without NULL checks: - mana_chn_setxdp() dereferences apc->rxqs[0], causing a NULL pointer dereference panic (CR2: 0000000000000000 at mana_chn_setxdp+0x26). - mana_destroy_vport() iterates apc->rxqs without a NULL check. - mana_fence_rqs() iterates apc->rxqs without a NULL check. - mana_dealloc_queues() iterates apc->tx_qp without a NULL check. Add NULL guards for apc->rxqs in mana_fence_rqs(), mana_destroy_vport(), and before the mana_chn_setxdp() call. Add a NULL guard for apc->tx_qp in mana_dealloc_queues() to skip TX queue draining when TX queues were never allocated or already freed.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.13
|
6.1.176
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.143
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.35
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |