net: sxgbe: fix potential NULL dereference in sxgbe_rx()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1edb9ca69e8a7988900fc0283e10550b5592164d · < 88f46c0be77bfe45830ac33102c75be7c34ac3f3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: sxgbe: fix potential NULL dereference in sxgbe_rx()
Currently, when skb is null, the driver prints an error and then dereferences skb on the next line.
To fix this, let's add a 'break' after the error message to switch to sxgbe_rx_refill(), which is similar to the approach taken by the other drivers in this particular case, e.g. calxeda with xgmac_rx().
Found during a code review.
From the CVE record · Linux
The Linux kernel sxgbe driver can dereference a NULL skb in sxgbe_rx() after printing an error. This could cause a kernel crash when skb is NULL. The input does not establish whether an attacker can trigger the condition or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the sxgbe driver should check their systems; affected versions are not specified.