В ядре Linux устранена следующая уязвимость:
net: wwan: t7xx: проверить port_count на соответствие длине сообщения в t7xx_port_enum_msg_handler
t7xx_port_enum_msg_handler() использует поле port_count, предоставленное модемом, как
цикл, связанный с port_msg->data[] без проверки того, что буфер сообщений
содержит достаточно данных. Модем отправляет port_count=65535 в 12-байтовом
буфер инициирует чтение фрагмента за пределами границ до 262140 байт. Добавьте проверку sizeof(*port_msg) перед доступом к заголовку сообщения порта.
поля для защиты от сообщений слишком маленького размера.
Добавьте проверку struct_size() после извлечения port_count и перед циклом. В t7xx_parse_host_rt_data() защитите прочитанный заголовок rt_feature с помощью
проверка оставшегося буфера перед доступом к data_len, проверка feat_data_len
против фактического оставшегося буфера, чтобы предотвратить внеплановое чтение и подписание
целочисленное переполнение по смещению. Передайте msg_len с обоих сайтов вызова: skb->len по пути DPMAIF после
skb_pull() и проверенный feat_data_len на пути квитирования.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: wwan: t7xx: validate port_count against message length in t7xx_port_enum_msg_handler t7xx_port_enum_msg_handler() uses the modem-supplied port_count field as a loop bound over port_msg->data[] without checking that the message buffer contains sufficient data. A modem sending port_count=65535 in a 12-byte buffer triggers a slab-out-of-bounds read of up to 262140 bytes. Add a sizeof(*port_msg) check before accessing the port message header fields to guard against undersized messages. Add a struct_size() check after extracting port_count and before the loop. In t7xx_parse_host_rt_data(), guard the rt_feature header read with a remaining-buffer check before accessing data_len, validate feat_data_len against the actual remaining buffer to prevent OOB reads and signed integer overflow on offset. Pass msg_len from both call sites: skb->len at the DPMAIF path after skb_pull(), and the validated feat_data_len at the handshake path.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.19
|
6.1.176
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.88
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
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:*:*:*:*:*:*
|
— | — |