В ядре Linux устранена следующая уязвимость:
libceph: исправлен доступ к плитам за пределами границ при обработке сообщений аутентификации. Если (потенциально поврежденное) сообщение типа CEPH_MSG_AUTH_REPLY
содержит положительное значение в поле результата, оно рассматривается как
код ошибки с помощью ceph_handle_auth_reply() и возвращается в
handle_auth_reply(). После этого предпринимается попытка отправить
предварительно выделенное сообщение типа CEPH_MSG_AUTH, где возвращаемое значение
интерпретируется как размер переднего сегмента для отправки.
Если результат значение в сообщении больше размера буфера памяти выделенный для переднего сегмента, происходит доступ за пределы границ, и содержимое области памяти за пределами этого буфера отправляется наружу. Этот патч устраняет проблему, обрабатывая только отрицательные значения в поле результата как ошибки. Поэтому положительные значения рассматриваются как успех. так же, как и нулевое значение.
Кроме того, в
__send_prepared_auth_request() сравнивает параметр len с
front_alloc_len, чтобы предотвратить отправку сообщения, если оно выходит за пределы
распределения и облегчить обнаружение любых логических ошибок, ведущих
к этому.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: libceph: Fix slab-out-of-bounds access in auth message processing If a (potentially corrupted) message of type CEPH_MSG_AUTH_REPLY contains a positive value in its result field, it is treated as an error code by ceph_handle_auth_reply() and returned to handle_auth_reply(). Thereafter, an attempt is made to send the preallocated message of type CEPH_MSG_AUTH, where the returned value is interpreted as the size of the front segment to send. If the result value in the message is greater than the size of the memory buffer allocated for the front segment, an out-of-bounds access occurs, and the content of the memory region beyond this buffer is sent out. This patch fixes the issue by treating only negative values in the result field as errors. Positive values are therefore treated as success in the same way as a zero value. Additionally, a BUG_ON is added to __send_prepared_auth_request() comparing the len parameter to front_alloc_len to prevent sending the message if it exceeds the bounds of the allocation and to make it easier to catch any logic flaws leading to this.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 13
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.34.1
|
5.15.209
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.175
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.88
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.34:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.34:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.34:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.34:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.34:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.34:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:2.6.34:rc7:*:*:*:*:*:*
|
— | — |