В ядре Linux устранена следующая уязвимость:
sctp: проверка длины встроенного фрагмента INIT и списка адресов в файле cookie.
sctp_unpack_cookie() только проверял, что длина встроенного фрагмента INIT
не превышал оставшуюся полезную нагрузку файлов cookie, но не гарантировал, что
Блок INIT достаточно велик, чтобы содержать полный заголовок INIT. Таким образом, неверный формат COOKIE_ECHO может содержать усеченный фрагмент INIT,
Поле длины меньше sizeof(struct sctp_init_chunk). Позже,
sctp_process_init() обращается к параметрам INIT безоговорочно, что может
привести к чтению за пределами поля.
Кроме того, raw_addr_list_len не полностью проверен на соответствие
оставшаяся полезная нагрузка cookie. Когда проверка подлинности файлов cookie отключена,
злоумышленник может предоставить raw_addr_list_len слишком большого размера и вызвать
sctp_raw_to_bind_addrs() для чтения за пределами файла cookie.
анализатору адресов также не хватает достаточных проверок границ для заголовков параметров.
и длины, что позволяет срабатывать неверным параметрам адреса.
чтение за пределами поля. Исправьте это:
- требование, чтобы длина встроенного фрагмента INIT была не менее sizeof(struct
sctp_init_chunk);
- проверка соответствия фрагмента INIT и списка необработанных адресов
внутри полезных данных cookie;
- проверка наличия достаточных данных для каждого заголовка параметра адреса и
полезная нагрузка перед ее анализом.
Обратите внимание, что sctp_verify_init() должен вызываться после sctp_unpack_cookie().
и перед sctp_process_init(), когда аутентификация файлов cookie отключена. Это будет рассмотрено в отдельном патче.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sctp: validate embedded INIT chunk and address list lengths in cookie sctp_unpack_cookie() only checked that the embedded INIT chunk length did not exceed the remaining cookie payload, but did not ensure that the INIT chunk is large enough to contain a complete INIT header. A malformed COOKIE_ECHO can therefore carry a truncated INIT chunk whose length field is smaller than sizeof(struct sctp_init_chunk). Later, sctp_process_init() accesses INIT parameters unconditionally, which may lead to out-of-bounds reads. In addition, raw_addr_list_len is not fully validated against the remaining cookie payload. When cookie authentication is disabled, an attacker can supply an oversized raw_addr_list_len and cause sctp_raw_to_bind_addrs() to read beyond the end of the cookie. The address parser also lacks sufficient bounds checks for parameter headers and lengths, allowing malformed address parameters to trigger out-of-bounds reads. Fix this by: - requiring the embedded INIT chunk length to be at least sizeof(struct sctp_init_chunk); - validating that the INIT chunk and raw address list together fit within the cookie payload; - verifying sufficient data exists for each address parameter header and payload before parsing it. Note that sctp_verify_init() must be called after sctp_unpack_cookie() and before sctp_process_init() when cookie authentication is disabled. This will be addressed in a separate patch.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 14
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12.1
|
6.18.36
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:*
|
— | — |
|
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:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:*
|
— | — |