В ядре Linux устранена следующая уязвимость:
wifi: brcmfmac: исправлено разыменование нулевого указателя в brcmf_txfinalize()
При удалении устройства или выгрузке модуля ядра потенциальный NULL
происходит разыменование указателя. Следующая последовательность удаляет интерфейс:
brcmf_detach()
brcmf_remove_interface()
brcmf_del_if()
Внутри функции brcmf_del_if() параметр drvr->if2bss[ifidx] обновляется до
BRCMF_BSSIDX_INVALID (-1), если bsscfgidx соответствует. После вызова brcmf_remove_interface() функция brcmf_proto_detach()
называется предоставлением следующей последовательности:
brcmf_detach()
brcmf_proto_detach()
brcmf_proto_msgbuf_detach()
brcmf_flowring_detach()
brcmf_msgbuf_delete_flowring()
brcmf_msgbuf_remove_flowring()
brcmf_flowring_delete()
brcmf_get_ifp()
brcmf_txfinalize()
Поскольку brcmf_get_ip() может и фактически вернет в этом случае NULL,
вызов brcmf_txfinalize() приведет к разыменованию нулевого указателя внутри
brcmf_txfinalize() при попытке обновить ifp->ndev->stats.tx_errors.
Это произойдет только в том случае, если у проточного еще есть скб. Хотя разыменование NULL-указателя наблюдалось только при попытке
обновите статистику передачи, все остальные варианты использования указателя ifp были
также охраняется с ранним возвратом, если ifp равен NULL.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix NULL pointer dereference in brcmf_txfinalize() On removal of the device or unloading of the kernel module a potential NULL pointer dereference occurs. The following sequence deletes the interface: brcmf_detach() brcmf_remove_interface() brcmf_del_if() Inside the brcmf_del_if() function the drvr->if2bss[ifidx] is updated to BRCMF_BSSIDX_INVALID (-1) if the bsscfgidx matches. After brcmf_remove_interface() call the brcmf_proto_detach() function is called providing the following sequence: brcmf_detach() brcmf_proto_detach() brcmf_proto_msgbuf_detach() brcmf_flowring_detach() brcmf_msgbuf_delete_flowring() brcmf_msgbuf_remove_flowring() brcmf_flowring_delete() brcmf_get_ifp() brcmf_txfinalize() Since brcmf_get_ip() can and actually will return NULL in this case the call to brcmf_txfinalize() will result in a NULL pointer dereference inside brcmf_txfinalize() when trying to update ifp->ndev->stats.tx_errors. This will only happen if a flowring still has an skb. Although the NULL pointer dereference has only been seen when trying to update the tx statistic, all other uses of the ifp pointer have been guarded as well with an early return if ifp is NULL.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.1.129
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.78
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.14
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.13.3
|