ice: add NULL check in eswitch lag check
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: add NULL check in eswitch lag check
The function ice_lag_is_switchdev_running() is being called from outside of the LAG event handler code. This results in the lag->upper_netdev being NULL sometimes. To avoid a NULL-pointer dereference, there needs to be a check before it is dereferenced.
From the CVE record · Linux
The Linux kernel’s ice driver can dereference a NULL pointer when its eswitch LAG check is called outside the LAG event handler and lag->upper_netdev is NULL. The input does not specify whether an attacker can trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the ice driver should check their versions against the vendor advisory; affected versions are not specified.