В ядре Linux устранена следующая уязвимость:
RDMA/mlx4: исправлено неправильное использование RCU в mlx4_srq_event(). Сашико отмечает, что само radix_tree безопасно для RCU, но ничего
освобождает структуру mlx4_srq с помощью RCU, и к ней даже нет доступа внутри
Критическая секция RCU. Он также выйдет из строя, если событие будет доставлено раньше.
инициализация объекта srq завершена.
Используйте спин-блокировку, поскольку заставить RCU работать непросто, используйте
refcount_inc_not_zero() для защиты от частично инициализированных объектов,
и прикажите refcount_set() быть после полной инициализации srq.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx4: Fix mis-use of RCU in mlx4_srq_event() Sashiko points out the radix_tree itself is RCU safe, but nothing ever frees the mlx4_srq struct with RCU, and it isn't even accessed within the RCU critical section. It also will crash if an event is delivered before the srq object is finished initializing. Use the spinlock since it isn't easy to make RCU work, use refcount_inc_not_zero() to protect against partially initialized objects, and order the refcount_set() to be after the srq is fully initialized.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.9
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
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:*:*:*:*:*:*
|
— | — |