В ядре Linux устранена следующая уязвимость:
Bluetooth: ISO: исправлен подсчет ссылок iso_conn.
iso_conn_del() и iso_chan_del() имеют гонку, которая приводит к двойному результату
из iso_conn:
[Задача hdev->workqueue] [Задача 2]
iso_conn_del iso_chan_del
iso_conn_hold_unless_zero iso_conn_lock
iso_conn_lock conn->sk = NULL
iso_conn_unlock
sk = iso_sock_hold(conn) <---------´
if (!sk) iso_conn_put iso_conn_put
iso_conn_put /* UAF */
В настоящее время требуется дополнительный ввод !sk в iso_conn_del(), поскольку
ошибка iso_chan_add() может привести к тому, что iso_conn не будет связан ни с одним sk.
Исправьте это, установив собственный счетчик ссылок iso_pi(sk)->conn, если он не равен NULL, поэтому
iso_conn_del не нужно ставить. Настройте iso_conn_add().
пересчет, так что conn помещается, если он не связан с
ск.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: ISO: fix refcounting of iso_conn iso_conn_del() and iso_chan_del() have a race that results to double-put of iso_conn: [Task hdev->workqueue] [Task 2] iso_conn_del iso_chan_del iso_conn_hold_unless_zero iso_conn_lock iso_conn_lock conn->sk = NULL iso_conn_unlock sk = iso_sock_hold(conn) <---------´ if (!sk) iso_conn_put iso_conn_put iso_conn_put /* UAF */ The extra put for !sk in iso_conn_del() is currently required since failing iso_chan_add() may leave iso_conn not associated with any sk. Fix by having iso_pi(sk)->conn own refcount when non-NULL, so iso_conn_del does not need to put it. Adjust the iso_conn_add() refcounting so that conn is put if it does not get associated with an sk.
Характеристики атаки
Последствия
Строка CVSS v3.1