CVE-2026-97982: net: ethernet: cortina: Fix budget accounting
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: cortina: Fix budget accounting
The gmac_rx() function returns the remaining NAPI budget, but its caller treats the return value as the number of packets received. An idle poll therefore reports a full budget and remains scheduled.
Return the number of received packets instead. Preserve the existing free queue refill accounting by adding that count directly; continuing to subtract it from the budget would invert the refill behavior.
The Linux kernel CVE team has assigned CVE-2026-97982 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.16 with commit 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 and fixed in 6.12.111 with commit 631c47e2e1154f2741c555b91df1b8cb99294c6a Issue introduced in 4.16 with commit 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 and fixed in 6.18.53 with commit 0ef8eaef5806c84db2334111d6f299c246a592bc Issue introduced in 4.16 with commit 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 and fixed in 7.2.7 with commit 94e06e12a376710587cfeea481b65e7c49747003 Issue introduced in 4.16 with commit 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 and fixed in 7.3-rc3 with commit a0de06d0da78a3db53de65dfd7452cc6d111f703
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-97982
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/cortina/gemini.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/631c47e2e1154f2741c555b91df1b8cb99294c6a https://git.kernel.org/stable/c/0ef8eaef5806c84db2334111d6f299c246a592bc https://git.kernel.org/stable/c/94e06e12a376710587cfeea481b65e7c49747003 https://git.kernel.org/stable/c/a0de06d0da78a3db53de65dfd7452cc6d111f703