Skip to main content
Vulnerability Database/CVE-2026-23313

CVE-2026-23313: Linux Kernel i40e Preempt Count Leak

CVE-2026-23313 is a preempt count leak flaw in the Linux kernel i40e driver that causes softirq preemption issues during NAPI polling. This article covers the technical details, affected versions, and fixes.

Updated:

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-23313 Overview

CVE-2026-23313 is a Linux kernel vulnerability in the Intel i40e Ethernet driver. The flaw stems from improper preemption handling in the NAPI (New API) poll tracepoint code path. The driver invokes get_cpu() during tracepoint assignment without a matching put_cpu() call, producing a preempt count leak. The imbalance is observable through softirq diagnostic messages such as softirq: huh, entered softirq 3 NET_RX with preempt_count 00000100, exited with 00000101?. The upstream fix replaces get_cpu() with smp_processor_id(), which retrieves the current CPU identifier without disabling preemption.

Critical Impact

The preempt count leak corrupts scheduler state on systems running the i40e driver, potentially leading to kernel warnings, scheduling anomalies, and reduced reliability on networking workloads.

Affected Products

  • Linux kernel branches containing the i40e driver NAPI poll tracepoint
  • Systems using Intel Ethernet Controller XL710/X710 family hardware
  • Distributions shipping kernels prior to the patched stable releases referenced in the kernel.org commits

Discovery Timeline

  • 2026-03-25 - CVE-2026-23313 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-23313

Vulnerability Analysis

The vulnerability resides in the i40e driver's NAPI poll tracepoint logic. NAPI is the kernel mechanism for interrupt mitigation on network receive paths. Tracepoints provide low-overhead instrumentation hooks for performance and debugging analysis. The driver code used get_cpu() to retrieve the current processor identifier when populating tracepoint fields. The get_cpu() macro both returns the CPU index and disables preemption by incrementing the preempt count. Each call must be paired with put_cpu() to restore the counter. The i40e tracepoint code path omitted the matching put_cpu() call, leaving the preempt count permanently elevated for every traced poll cycle.

Root Cause

The root cause is an unbalanced preemption-disable primitive in kernel networking code. get_cpu() is intended for short critical sections where the caller must remain pinned to a single CPU. In this tracepoint use case, the driver only needed the CPU identifier for logging purposes, not preemption protection. The correct primitive is smp_processor_id(), which returns the CPU index without altering preemption state.

Attack Vector

This is a kernel reliability defect rather than a remotely exploitable security flaw. Triggering the imbalance requires the i40e driver to be active and processing network traffic through the NAPI poll path with the relevant tracepoint enabled. Repeated polling cycles accumulate preempt count corruption, generating softirq warnings and degrading scheduler accuracy. No authentication or specific network input is required beyond normal traffic on affected hardware.

No verified proof-of-concept code is available for this issue. The vulnerability manifests through normal kernel operation on affected hardware. Refer to the upstream commits referenced below for the exact source-level changes.

Detection Methods for CVE-2026-23313

Indicators of Compromise

  • Kernel log messages matching the pattern softirq: huh, entered softirq 3 NET_RX with preempt_count with mismatched entry and exit values
  • Sporadic scheduler warnings or BUG: scheduling while atomic notices on hosts running the i40e driver
  • Unexpected preempt count values reported by lockdep or PREEMPT_COUNT debugging facilities during NET_RX softirq processing

Detection Strategies

  • Audit running kernel versions against the patched commits 4b3d54a, 9e0f091, b7e9182, dca4ea5, and fa5d5ba published on kernel.org
  • Enable kernel tracing on the i40e NAPI poll tracepoint in a controlled environment and compare preempt counts before and after poll cycles
  • Inspect dmesg output across the fleet for repeated NET_RX softirq preempt count warnings on hosts with Intel XL710/X710 NICs

Monitoring Recommendations

  • Forward kernel logs from Linux hosts with i40e-managed interfaces into a centralized logging or SIEM platform for pattern matching on softirq warnings
  • Track kernel package versions across the estate and flag hosts running unpatched kernels on affected hardware
  • Correlate NIC-related kernel warnings with network performance metrics to identify systems experiencing reliability degradation

How to Mitigate CVE-2026-23313

Immediate Actions Required

  • Inventory all Linux systems using the i40e driver, particularly servers with Intel XL710 or X710 series NICs
  • Schedule updates to stable kernel releases that include the upstream fix replacing get_cpu() with smp_processor_id()
  • Disable nonessential tracepoints on the i40e NAPI poll path until patched kernels are deployed if warnings are observed in production

Patch Information

The fix has been merged into the Linux stable tree across multiple branches. The patched commits are available from kernel.org: Kernel Git Commit 4b3d54a, Kernel Git Commit 9e0f091, Kernel Git Commit b7e9182, Kernel Git Commit dca4ea5, and Kernel Git Commit fa5d5ba. Apply the corresponding distribution kernel update once available.

Workarounds

  • Avoid enabling the i40e NAPI poll tracepoint in production until the patched kernel is installed
  • Where feasible, migrate workloads from affected hosts to systems already running patched kernel versions
  • Monitor dmesg and softirq diagnostics so that recurrences can be flagged and remediated quickly
bash
# Verify kernel version and check for i40e driver usage
uname -r
lsmod | grep i40e
dmesg | grep -i "NET_RX with preempt_count"

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.