В ядре Linux была устранена следующая уязвимость: ice: fix use-after-free В динамической очистке портов ice_dealloc_dynamic_port() используется dyn_port->vsi->idx для стирания динамического порта с pf->dyn_ports. Тем не менее, он освобождает VSI перед чтением индекса для стирания, что приводит к use-after-free. Следуйте обратному порядку распределения в ice_alloc_dynamic_port(), стирая запись xarray перед освобождением VSI.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ice: fix use-after-free in dynamic port cleanup ice_dealloc_dynamic_port() uses dyn_port->vsi->idx to erase the dynamic port from pf->dyn_ports. However, it frees the VSI before reading the index for the erase, resulting in a use-after-free. Follow the reverse of the allocation order in ice_alloc_dynamic_port() by erasing the xarray entry before freeing the VSI.