В ядре Linux устранена следующая уязвимость:
net: hsr: отложить таблицу узлов бесплатно до тех пор, пока не появятся считыватели RCU
Операции generic-netlink со списком узлов и статусом узла HSR выполняются под
rcu_read_lock(). Они проходят hsr->node_db через hsr_get_next_node() и
hsr_get_node_data(), но при удалении RTM_DELLINK удаляется та же таблица узлов.
с помощью простого list_del() и немедленно освобождает каждый узел. Это позволяет средству чтения Generic-Netlink удерживать указатель на структуру hsr_node.
hsr_dellink().
В сборке KASAN расширение окна чтения после
hsr_get_next_node() получает узел и воспроизводит использование плиты после освобождения
когда читатель копирует node->macaddress_A; освобождающий стек
hsr_del_nodes() из hsr_dellink(). Используйте list_del_rcu() и отложите освобождение через существующий
Обратный вызов hsr_free_node_rcu(). Это соответствует правилу времени жизни, используемому
HSR сокращает пути, которые уже удаляют узлы с помощью list_del_rcu() и
вызов_rcu().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: hsr: defer node table free until after RCU readers HSR node-list and node-status generic-netlink operations run under rcu_read_lock(). They walk hsr->node_db through hsr_get_next_node() and hsr_get_node_data(), but RTM_DELLINK teardown removes the same node table with plain list_del() and frees each node immediately. That lets a generic-netlink reader hold a struct hsr_node pointer across hsr_dellink(). In a KASAN build, widening the reader window after hsr_get_next_node() obtains the node reproduces a slab-use-after-free when the reader copies node->macaddress_A; the freeing stack is hsr_del_nodes() from hsr_dellink(). Use list_del_rcu() and defer the free through the existing hsr_free_node_rcu() callback. This matches the lifetime rule used by the HSR prune paths, which already delete nodes with list_del_rcu() and call_rcu().
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.2.12
|
5.10.259
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.210
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.176
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.143
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
7.0.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |