В ядре Linux устранена следующая уязвимость:
sctp: исправлен размер массива auth_hmacs в структуре sctp_cookie
Предполагается, что массив auth_hmacs в структуре sctp_cookie хранит полную информацию. Параметр SCTP_AUTH_HMAC_ALGO, который состоит из структуры sctp_paramhdr.
за которым следуют N идентификаторов HMAC. Однако размер массива был рассчитан с использованием дополнительных 2 байтов вместо
sizeof(struct sctp_paramhdr), который составляет 4 байта.
Когда четыре идентификатора HMAC
настроены, параметр HMAC-ALGO, хранящийся в конечной точке, больше
чем буфер auth_hmacs в файле cookie. В результате sctp_association_init() копирует за пределы auth_hmacs.
при инициализации ассоциации повреждает соседние auth_chunks
поле. Это может привести к тому, что будет принят неверный идентификатор HMAC, а затем
вызвать чтение за пределами границ в sctp_auth_get_hmac().
Исправьте расчет размера массива, включив полный заголовок параметра SCTP.
размер.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sctp: fix auth_hmacs array size in struct sctp_cookie The auth_hmacs array in struct sctp_cookie is supposed to store a complete SCTP_AUTH_HMAC_ALGO parameter, which consists of a struct sctp_paramhdr followed by N HMAC identifiers. However, the array size was calculated using an extra 2 bytes instead of sizeof(struct sctp_paramhdr), which is 4 bytes. When four HMAC identifiers are configured, the HMAC-ALGO parameter stored in the endpoint is larger than the auth_hmacs buffer in the cookie. As a result, sctp_association_init() copies beyond the end of auth_hmacs when initializing the association, corrupting the adjacent auth_chunks field. This can lead to an invalid HMAC identifier being accepted and later cause an out-of-bounds read in sctp_auth_get_hmac(). Fix the array size calculation by including the full SCTP parameter header size.
Характеристики атаки
Последствия
Строка CVSS v3.1