Linux kernel use-after-free in ice dynamic port cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel ice driver reads a VSI index after freeing the VSI during dynamic port cleanup, causing a use-after-free. The input does not specify what an attacker could do, whether access or user interaction is required, or how the vulnerable path is reached.
Engineers running Linux kernels with the ice driver should check whether their kernel is affected; affected versions are not specified.