Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97982 Overview
CVE-2026-97982 is a logic flaw in the Linux kernel's Cortina Gemini (gmac) Ethernet driver. The gmac_rx() function returns the remaining NAPI (New API) budget, but its caller treats the return value as the number of packets received. An idle poll therefore reports a full budget consumed and remains perpetually scheduled, preventing the NAPI instance from completing.
The upstream fix changes gmac_rx() to return the number of received packets and preserves free-queue refill accounting by adding that count directly rather than subtracting it from the budget.
Critical Impact
Incorrect NAPI budget accounting keeps the receive poll loop permanently scheduled, wasting CPU cycles and degrading network performance on systems using Cortina Gemini Ethernet hardware.
Affected Products
- Linux kernel — drivers/net/ethernet/cortina/gemini.c
- Platforms using the Cortina Systems Gemini SoC Ethernet controller
- Stable kernel branches referenced in the upstream commit series
Discovery Timeline
- 2026-09-25 - CVE-2026-97982 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97982
Vulnerability Analysis
The Linux NAPI framework polls network drivers with a caller-supplied budget representing the maximum number of packets to process in one poll cycle. The driver must return the number of packets actually processed. If the returned value is less than budget, the NAPI core calls napi_complete_done() and re-enables interrupts. If the returned value equals budget, the poll is rescheduled.
In the Cortina gmac driver, gmac_rx() returned the remaining budget rather than the packet count. On an idle link where zero packets arrive, the function returned the full budget value. The NAPI core interpreted this as a saturated poll and immediately rescheduled the instance, producing a tight loop that consumed CPU without doing useful work.
The secondary issue involves the free-queue refill counter. The original code subtracted refill operations from the budget return value, which inverted the intended accounting once the primary bug was corrected. The fix adds the refill count to the packet count directly, preserving the original refill behavior.
Root Cause
The root cause is a semantic mismatch between the driver and the NAPI contract. The driver author returned work_done as budget - packets_processed instead of packets_processed, violating the convention that NAPI poll functions must return the number of units of work completed [CWE-682: Incorrect Calculation].
Attack Vector
This is a local reliability and resource-consumption issue rather than a remotely exploitable vulnerability. There is no authenticated or network-based attack vector that grants code execution or privilege escalation. Impact is limited to CPU exhaustion and degraded throughput on affected hardware. The vulnerability manifests whenever the NAPI poll executes on an idle or lightly loaded receive queue.
See the upstream patch series for implementation detail: Kernel commit 0ef8eaef5806, commit 631c47e2e115, commit 94e06e12a376, and commit a0de06d0da78.
Detection Methods for CVE-2026-97982
Indicators of Compromise
- Sustained high softirq CPU usage attributed to NET_RX on systems with Cortina Gemini Ethernet interfaces, even when network traffic is minimal.
- ksoftirqd kernel threads consuming significant CPU with no corresponding packet throughput increase.
- NAPI poll never calling napi_complete_done() for the affected interface, visible through /proc/net/softnet_stat time-squeeze counters.
Detection Strategies
- Audit running kernels on Cortina Gemini SoC hardware against the fixed commit hashes to confirm whether the patch is present.
- Use perf top or ftrace to confirm that gmac_napi_poll and gmac_rx dominate CPU time without matching rx_packets growth in ethtool -S statistics.
- Correlate interface counters with system load; a persistently busy poll loop with zero or low rx_packets deltas indicates the defect.
Monitoring Recommendations
- Collect /proc/softirqs and /proc/net/softnet_stat metrics at regular intervals and alert on time-squeeze growth without packet growth.
- Monitor per-CPU utilization on devices with Cortina Gemini NICs and alert on sustained system-time above baseline.
- Ingest kernel version and build metadata into a central telemetry pipeline to track patch coverage across the fleet.
How to Mitigate CVE-2026-97982
Immediate Actions Required
- Inventory systems running the Cortina Gemini Ethernet driver (drivers/net/ethernet/cortina/gemini.c) and identify kernels built before the referenced stable commits.
- Apply the vendor-supplied kernel update that includes the four stable commits listed in the NVD references.
- Rebuild and redeploy custom kernels for embedded platforms using the Cortina Gemini SoC so they include the fix.
Patch Information
The fix is distributed across the Linux stable tree as commits 0ef8eaef5806, 631c47e2e115, 94e06e12a376, and a0de06d0da78. The patch modifies gmac_rx() to return the packet count and updates the caller to add refill accounting rather than subtract it. Downstream distributions should ship an updated kernel package that incorporates these commits.
Workarounds
- No supported workaround exists at the driver configuration level; a kernel update is required to resolve the accounting defect.
- On affected embedded systems where immediate patching is not feasible, reducing interrupt load by limiting ingress traffic can lessen the symptom but does not eliminate the idle-poll CPU cost.
# Verify whether the running kernel includes the fix by checking the
# gmac_rx return path in the source tree used to build the kernel.
grep -n "return work_done" drivers/net/ethernet/cortina/gemini.c
# Observe NAPI time-squeeze and packet counters on an affected interface.
watch -n 1 'cat /proc/net/softnet_stat; ethtool -S eth0 | grep -E "rx_packets|rx_bytes"'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

