В ядре Linux устранена следующая уязвимость:
libceph: обновить auth->authorizer_buf{,_len} после обновления авторизатора
ceph_x_create_authorizer() кэширует au->buf->vec.iov_base и
au->buf->vec.iov_len в структуре ceph_auth_handshake. Эти
кэшированные значения затем используются кодом подключения к мессенджеру, когда
отправка авторизатора.
ceph_x_update_authorizer() может перестроить авторизатор при появлении более новой версии. Сервисный билет имеется.
Если восстановленный авторизатор больше не
помещается в существующий буфер, ceph_x_build_authorizer() удаляет его
ссылается на au->buf и выделяет новый. Если это финал
ссылке, ceph_buffer_put() освобождает старый ceph_buffer и его
vec.iov_base, но auth->authorizer_buf все еще указывает на это освобождение
память. Поэтому последующее повторное подключение msgr1 может поставить устаревший указатель в очередь.
и запустить KASAN slab-use-after-free в _copy_from_iter(), пока
tcp_sendmsg() копирует авторизатора.
Обновите auth->authorizer_buf и auth->authorizer_buf_len после успешное перестроение авторизатора, поэтому мессенджер отправляет текущий буфер.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: libceph: refresh auth->authorizer_buf{,_len} after authorizer update ceph_x_create_authorizer() caches au->buf->vec.iov_base and au->buf->vec.iov_len in struct ceph_auth_handshake. These cached values are then used by the messenger connect code when sending the authorizer. ceph_x_update_authorizer() can rebuild the authorizer when a newer service ticket is available. If the rebuilt authorizer no longer fits in the existing buffer, ceph_x_build_authorizer() drops its reference to au->buf and allocates a new one. If this is the final reference, ceph_buffer_put() frees the old ceph_buffer and its vec.iov_base, but auth->authorizer_buf still points at that freed memory. A subsequent msgr1 reconnect can therefore queue the stale pointer and trigger a KASAN slab-use-after-free in _copy_from_iter() while tcp_sendmsg() copies the authorizer. Refresh auth->authorizer_buf and auth->authorizer_buf_len after a successful authorizer rebuild so the messenger sends the current buffer.
Характеристики атаки
Последствия
Строка CVSS v3.1