ice: fix double free in ice_sf_eth_activate() error path
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 double free in ice_sf_eth_activate() error path
When auxiliary_device_add() fails, ice_sf_eth_activate() jumps to aux_dev_uninit and calls auxiliary_device_uninit(&sf_dev->adev).
The device release callback ice_sf_dev_release() frees sf_dev, but the current error path falls through to sf_dev_free and calls kfree(sf_dev) again, causing a double free.
Keep kfree(sf_dev) for the auxiliary_device_init() failure path, but avoid falling through to sf_dev_free after auxiliary_device_uninit().
From the CVE record · Linux
The Linux kernel’s ice_sf_eth_activate() error path can free sf_dev twice when auxiliary_device_add() fails. The input does not specify how an attacker could trigger this failure or whether authentication or user interaction is required.
Engineers running Linux kernels with the affected ice driver should check their kernel version against the vendor advisory; affected versions were not provided.