В ядре Linux устранена следующая уязвимость:
openvswitch: vport: исправлена самоблокировка при освобождении портов туннеля.
vports используются одновременно и защищены RCU, поэтому netdev_put()
должно произойти после льготного периода RCU. Таким образом, либо при вызове RCU, либо
после синхронизации_net(). rtnl_delete_link() должен произойти под
RTNL и поэтому не может быть выполнен в контексте RCU. Вызов синхронизации_net()
при этом удерживать RTNL не очень хорошая идея для производительности и системы
стабильность под нагрузкой в целом, поэтому вызов netdev_put() в вызове RCU
здесь правильное решение.
Однако,
когда устройство будет удалено, rtnl_unlock() вызовет netdev_run_todo()
и блокировать до тех пор, пока все ссылки не исчезнут. В текущем коде это
означает, что мы никогда не достигаем call_rcu() и vport никогда не освобождается
и ссылка никогда не освобождается, что приводит к самоблокировке устройства.
удаление. Исправьте это, переместив rcu_call() перед rtnl_unlock(), чтобы
запланированный обратный вызов RCU будет выполнен при вызовеsync_net().
вызывается из rtnl_unlock()->netdev_run_todo(), в то время как сам RTNL
уже выпущен.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: openvswitch: vport: fix self-deadlock on release of tunnel ports vports are used concurrently and protected by RCU, so netdev_put() must happen after the RCU grace period. So, either in an RCU call or after the synchronize_net(). The rtnl_delete_link() must happen under RTNL and so can't be executed in RCU context. Calling synchronize_net() while holding RTNL is not a good idea for performance and system stability under load in general, so calling netdev_put() in RCU call is the right solution here. However, when the device is deleted, rtnl_unlock() will call netdev_run_todo() and block until all the references are gone. In the current code this means that we never reach the call_rcu() and the vport is never freed and the reference is never released, causing a self-deadlock on device removal. Fix that by moving the rcu_call() before the rtnl_unlock(), so the scheduled RCU callback will be executed when synchronize_net() is called from the rtnl_unlock()->netdev_run_todo() while the RTNL itself is already released.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 11
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.1.168
|
6.1.175
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6.131
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12.80
|
6.12.88
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18.21
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19.11
|
7.0
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
7.0.1
|
7.0.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
|
— | — |
|
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:*:*:*:*:*:*
|
— | — |