В ядре Linux устранена следующая уязвимость:
wifi: wilc1000: исправлена утечка dma_buffer при сбое захвата шины
wilc_wlan_firmware_download() выделяет dma_buffer с помощью kmalloc() по адресу
верхнюю часть функции и использует метку «fail:», чтобы освободить ее через
kfree(dma_buffer) при ошибке. Все последующие пути ошибок правильно используют «goto error» для маршрутизации через это.
уборка. Тем не менее, ранний путь сбоя после первого методаacquire_bus()
вызов использует простой оператор return ret;, который пропускает dma_buffer всякий раз, когда шина
приобрести не получается.
Замените ранний возврат на goto error, чтобы существующий путь очистки бежит. Найдено с помощью специального семантического патча Coccinelle, охотящегося за kmalloc'd. местные жители сообщили о путях ошибок раннего возврата при загрузке прошивки драйвера код.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: wilc1000: fix dma_buffer leak on bus acquire failure wilc_wlan_firmware_download() allocates dma_buffer with kmalloc() at the top of the function and uses a 'fail:' label to free it via kfree(dma_buffer) on error. All later error paths correctly use 'goto fail' to route through this cleanup. However, the early failure path after the first acquire_bus() call uses a bare 'return ret;', which leaks dma_buffer whenever the bus acquire fails. Replace the early return with goto fail so the existing cleanup path runs. Found via a custom Coccinelle semantic patch hunting for kmalloc'd locals leaked on early-return error paths in driver firmware-download code.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.34
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
7.0.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
7.1
|
|
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:*:*:*:*:*:*
|
— | — |