В ядре Linux устранена следующая уязвимость:
net/tcp-ao: исправлено использование ключа после освобождения в пути del_async. В tcp_ao_delete_key() путь del_async пропускает current_key.
и проверки действительности rnext_key, присутствующие в синхронном пути,
при условии, что эти указатели всегда имеют значение NULL в сокетах LISTEN. Однако,
если ключ был добавлен с set_current=1/set_rnext=1, пока сокет
находился в состоянии ЗАКРЫТО, значения current_key и rnext_key будут отличными от NULL.
после того, как Listen() переводит сокет в режим LISTEN.
Когда такой ключ удаляется с помощью del_async=1, hlist_del_rcu() и
call_rcu() освобождает ключ, не очищая висячие указатели. По истечении льготного периода RCU разыменовывается gotockopt(TCP_AO_INFO).
current_key->sndid и rnext_key->rcvid из освобожденной оперативной памяти. Очистите current_key и rnext_key в пути del_async, когда они
укажите удаляемый ключ.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/tcp-ao: fix use-after-free of key in del_async path In tcp_ao_delete_key(), the del_async path skips the current_key and rnext_key validity checks present in the synchronous path, assuming these pointers are always NULL on LISTEN sockets. However, if a key was added with set_current=1/set_rnext=1 while the socket was in CLOSE state, current_key and rnext_key will be non-NULL after listen() transitions the socket to LISTEN. When such a key is deleted with del_async=1, hlist_del_rcu() and call_rcu() free the key without clearing the dangling pointers. After the RCU grace period, getsockopt(TCP_AO_INFO) dereferences current_key->sndid and rnext_key->rcvid from freed slab memory. Clear current_key and rnext_key in the del_async path when they reference the key being deleted.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.95
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.18.38
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.1.3
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.2-rc1
|