В ядре Linux устранена следующая уязвимость:
sctp: auth: проверить требование аутентификации, когда auth_chunk равен NULL
sctp_auth_chunk_verify() возвращает true безоговорочно, когда
chunk->auth_chunk имеет значение NULL, аутентификация молча пропускается. Это неверно, когда:
1. skb_clone() не удалось выполнить путь получения BH, оставив auth_chunk
НУЛЬ. В sctp_endpoint_bh_rcv() asoc имеет значение NULL для нового
соединения, поэтому ранняя проверка sctp_auth_recv_cid() не может
поймай это.
2.
Никакой фрагмент AUTH не предшествует COOKIE-ECHO, поэтому skb_clone() никогда не используется.
вызывается, и auth_chunk остается NULL. Исправьте это, проверив sctp_auth_recv_cid(), когда auth_chunk имеет значение NULL:
если требуется аутентификация, верните false, чтобы удалить фрагмент;
в противном случае продолжайте нормально.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sctp: auth: verify auth requirement when auth_chunk is NULL sctp_auth_chunk_verify() returns true unconditionally when chunk->auth_chunk is NULL, silently skipping authentication. This is incorrect when: 1. skb_clone() failed in the BH receive path, leaving auth_chunk NULL. In sctp_endpoint_bh_rcv() asoc is NULL for new connections, so the early sctp_auth_recv_cid() check cannot catch this. 2. No AUTH chunk precedes COOKIE-ECHO, so skb_clone() is never called and auth_chunk remains NULL. Fix by checking sctp_auth_recv_cid() when auth_chunk is NULL: if authentication is required, return false to drop the chunk; otherwise continue normally.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.24
|
6.6.148
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.24
|
6.12.101
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.24
|
6.18.42
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.24
|
7.1.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.24
|
7.2
|