CVE-2026-98585: eth: fbnic: Avoid rounding zero ring sizes
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In 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.
The Linux kernel CVE team has assigned CVE-2026-98585 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 6cbf18a05c06090d867ef417a2a30b214d42d171 and fixed in 6.18.55 with commit 92c9f2ea634d92adff5403d231ebeda683c5685a Issue introduced in 6.15 with commit 6cbf18a05c06090d867ef417a2a30b214d42d171 and fixed in 7.2.9 with commit 491aa3167ae02f219cb2d2de6f4196d28dca03be Issue introduced in 6.15 with commit 6cbf18a05c06090d867ef417a2a30b214d42d171 and fixed in 7.3-rc5 with commit 0160953d8eec75c3c55562158c46442ff1fd410b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98585
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/92c9f2ea634d92adff5403d231ebeda683c5685a https://git.kernel.org/stable/c/491aa3167ae02f219cb2d2de6f4196d28dca03be https://git.kernel.org/stable/c/0160953d8eec75c3c55562158c46442ff1fd410b