ethtool: fail closed if we can't get max channel used in indirection tables
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:
ethtool: fail closed if we can't get max channel used in indirection tables
Commit 0d1b7d6c9274 ("bnxt: fix crashes when reducing ring count with active RSS contexts") proves that allowing indirection table to contain channels with out of bounds IDs may lead to crashes. Currently the max channel check in the core gets skipped if driver can't fetch the indirection table or when we can't allocate memory.
Both of those conditions should be extremely rare but if they do happen we should try to be safe and fail the channel change.
From the CVE record · Linux
The Linux kernel may allow an ethtool channel change to proceed without checking whether RSS indirection tables contain out-of-bounds channel IDs if a driver cannot fetch a table or memory allocation fails. This can lead to crashes when reducing channel counts with active RSS contexts. The input does not establish an attacker path or specify authentication or user-interaction requirements.
Engineers running the Linux kernel should check whether their kernel includes the fix; affected versions are not specified.