eth: fbnic: Avoid rounding zero ring sizes
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 |
|
|
6.18.557.2.97.3In the Linux kernel, the following vulnerability has been resolved:
eth: fbnic: Avoid rounding zero ring sizes
roundup_pow_of_two() is undefined for zero. ethtool permits a zero ring size to reach the driver, where the minimum-size check should reject it.
Leave zero unchanged while rounding nonzero ring sizes. The minimum-size check then rejects zero deterministically without changing the established behavior for other values.
From the CVE record · Linux
The Linux kernel fbnic driver applies roundup_pow_of_two() to a zero ring size even though that operation is undefined for zero. A user who can submit a zero ring size through ethtool can reach this behavior; the input does not specify the resulting impact or authentication requirements.
Engineers running Linux kernels with the fbnic driver should check whether their kernel includes the fix; affected versions are not specified.