ice: fix FDIR CTRL VSI resource leak in ice_reset_all_vfs()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ da62c5ff9dcdac67204d6647f3cd43ad931a59f4 · < ebbe8868cf473f698e0fbaf436d2618b2bcda806| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ice: fix FDIR CTRL VSI resource leak in ice_reset_all_vfs()
Resetting all VFs causes resource leak on VFs with FDIR filters enabled as CTRL VSIs are only invalidated and not freed. Fix by using ice_vf_ctrl_vsi_release() instead of ice_vf_ctrl_invalidate_vsi() which aligns behavior with the ice_reset_vf() function.
Reproduction: echo 1 > /sys/class/net/$pf/device/sriov_numvfs ethtool -N $vf flow-type ether proto 0x9000 action 0 echo 1 > /sys/class/net/$pf/device/reset
From the CVE record · Linux
In the Linux kernel ice driver, resetting all VFs leaks CTRL VSI resources when the VFs have FDIR filters enabled. The described reproduction uses local configuration and reset commands; the input does not establish an attacker path or authentication requirements.
Engineers running Linux kernels with the ice driver and VFs configured with FDIR filters should check their systems; affected versions are not specified.