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.
https://git.kernel.org/stable/c/ca8a6285b11d01e5a279b1aa7fb55b1a02ecebb1
https://git.kernel.org/stable/c/b98eb58ba2f8fe8e9bba1b8a3b94fa5602c6de84
https://git.kernel.org/stable/c/7c1344df1ae0579f57b97647e5203b06496ce10c
https://git.kernel.org/stable/c/1402fc67d2f4e2e1fc7bf8ee0825b8ad994557ff