В ядре Linux устранена следующая уязвимость:
wifi: nl80211: исправлено целочисленное переполнение в nl80211_parse_mbssid_elems()
nl80211_parse_mbssid_elems() использует переменную u8 num_elems для подсчета
количество элементов MBSSID во вложенном атрибуте netlink attrs, которое может
привести к целочисленному переполнению, если пользователь интерфейса nl80211 укажет
256 или более элементов в соответствующем атрибуте пользовательского пространства.
целочисленное переполнение может привести к переполнению буфера кучи, как определяет num_elems
размер конечного массива в элементах, и после этого этот массив
записывается для каждого элемента в attrs.
Обратите внимание, что эта уязвимость затрагивает только устройства с
набор членов wiphy->mbssid_max_interfaces для беспроводного физического устройства
struct в драйвере устройства и может быть запущен только процессом с
Возможности CAP_NET_ADMIN.
Исправьте это, проверив максимум 255 элементов в attrs.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems() nl80211_parse_mbssid_elems() uses a u8 variable num_elems to count the number of MBSSID elements in the nested netlink attribute attrs, which can lead to an integer overflow if a user of the nl80211 interface specifies 256 or more elements in the corresponding attribute in userspace. The integer overflow can lead to a heap buffer overflow as num_elems determines the size of the trailing array in elems, and this array is thereafter written to for each element in attrs. Note that this vulnerability only affects devices with the wiphy->mbssid_max_interfaces member set for the wireless physical device struct in the device driver, and can only be triggered by a process with CAP_NET_ADMIN capabilities. Fix this by checking for a maximum of 255 elements in attrs.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.46
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.4.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.5:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.5:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.5:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.5:rc5:*:*:*:*:*:*
|
— | — |