В ядре Linux устранена следующая уязвимость:
sunrpc: обрабатывать SVC_GARBAGE во время обработки аутентификации svc как ошибку аутентификации
Тяньшуо Хан сообщил об удаленно запускаемом сбое, если клиент отправляет
RPC-сервер ядра — специально созданный пакет. При декодировании ответа RPC
происходит сбой таким образом, что SVC_GARBAGE возвращается без установки
указатель rq_accept_statp, то этот указатель можно разыменовать и
значение, хранящееся там. Если это первый раз, когда поток обрабатывает RPC, то это
указатель будет установлен в NULL, и ядро выйдет из строя.
В других случаях
это могло бы создать каракули памяти. Код сервера sunrpc обрабатывает возврат SVC_GARBAGE из svc_authenticate.
или pg_authenticate, как будто он должен отправить ответ GARBAGE_ARGS. RFC 5531
говорит, что если аутентификация не удалась, RPC должен быть отклонен.
вместо этого со статусом AUTH_ERR.
Обрабатывайте возврат SVC_GARBAGE как AUTH_ERROR с причиной
В этом случае AUTH_BADCRED вместо возврата GARBAGE_ARGS. Это
обходит всю проблему касания указателя rpc_accept_statp в
эту ситуацию и избегает аварии.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sunrpc: handle SVC_GARBAGE during svc auth processing as auth error tianshuo han reported a remotely-triggerable crash if the client sends a kernel RPC server a specially crafted packet. If decoding the RPC reply fails in such a way that SVC_GARBAGE is returned without setting the rq_accept_statp pointer, then that pointer can be dereferenced and a value stored there. If it's the first time the thread has processed an RPC, then that pointer will be set to NULL and the kernel will crash. In other cases, it could create a memory scribble. The server sunrpc code treats a SVC_GARBAGE return from svc_authenticate or pg_authenticate as if it should send a GARBAGE_ARGS reply. RFC 5531 says that if authentication fails that the RPC should be rejected instead with a status of AUTH_ERR. Handle a SVC_GARBAGE return as an AUTH_ERROR, with a reason of AUTH_BADCRED instead of returning GARBAGE_ARGS in that case. This sidesteps the whole problem of touching the rpc_accept_statp pointer in this situation and avoids the crash.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 12
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.3.4
|
6.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.4.1
|
6.6.95
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.35
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.15.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
|
— | — |