In the Linux kernel, the following vulnerability has been resolved: sctp: check RCV_SHUTDOWN after the sendmsg connect wait sctp_wait_for_connect() drops the socket lock while it sleeps. Затем out-of-the-blue ABORT может быть обработан из отставания сокета и отсоединить ассоциацию. Если параллельное выключение (fd, SHUT_RD) устанавливает RCV_SHUTDOWN, официант прерывается с ошибкой 0 перед проверкой asoc->base.dead.
Его конечная sctp_association_put() может затем освободить ассоциацию, оставив sctp_sendmsg_to_asoc() продолжать с болтающимся указателем. Проверьте RCV_SHUTDOWN вместе с ошибкой ожидания в sctp_sendmsg_to_asoc (), прежде чем снова использовать ассоциацию. Проверка получает доступ только к розетке, поэтому она не нуждается в дополнительной ссылке на ассоциацию.
Верните существующий -ESRCH, чтобы sctp_sendmsg() пропустил освобождение новой ассоциации, которая, возможно, уже была уничтожена. Оставьте sctp_wait_for_connect() неизменным, чтобы сохранить его поведение для вызывающего абонента connect().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sctp: check RCV_SHUTDOWN after the sendmsg connect wait sctp_wait_for_connect() drops the socket lock while it sleeps. An out-of-the-blue ABORT can then be processed from the socket backlog and unlink the association. If a concurrent shutdown(fd, SHUT_RD) sets RCV_SHUTDOWN, the waiter breaks with err == 0 before checking asoc->base.dead. Its final sctp_association_put() can then free the association, leaving sctp_sendmsg_to_asoc() to continue with a dangling pointer. Check RCV_SHUTDOWN along with the wait error in sctp_sendmsg_to_asoc() before using the association again. The check only accesses the socket, so it needs no additional association reference. Return the existing -ESRCH so that sctp_sendmsg() skips freeing a new association that may already have been destroyed. Keep sctp_wait_for_connect() unchanged to preserve its behavior for the connect() caller.
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.16
|
6.6.160
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.16
|
6.12.113
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.16
|
6.18.56
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.16
|
7.2.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.16
|
7.3
|