В ядре Linux была устранена следующая уязвимость: sctp: account for chunk padding in sctp_init_cause() sctp_init_cause() принимает chunk, когда skb_tailroom() может удерживать заголовок cause и полезную нагрузку. sctp_addto_chunk() затем записывает 0-3 байта padding перед этим заголовком, чтобы chunk оставался выровненным на 4 байта. Проверка не включает заполнение, и следующий skb_put() вызывает skb_over_panic() из softirq. Подсчитайте заполняющий sctp_addto_chunk() вот-вот запишется.
Причинная длина на проводе остается заголовком плюс полезная нагрузка. Обнаружен осмотром LLM, спровоцировал и протестировал исправление.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sctp: account for chunk padding in sctp_init_cause() sctp_init_cause() accepts a chunk when skb_tailroom() can hold the cause header and the payload. sctp_addto_chunk() then writes 0-3 bytes of padding before that header so the chunk stays 4-byte aligned. The check does not include the padding, and the following skb_put() calls skb_over_panic() from softirq. Count the padding sctp_addto_chunk() is about to write. The cause length on the wire stays the header plus the payload. Found by LLM inspection, triggered and tested the fix.
Характеристики атаки
Последствия
Строка CVSS v3.1