CVE-2026-139791

net: Use a dedicated flag to track disabled napi instances

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: Use a dedicated flag to track disabled napi instances

Trying to disable the napi threaded state while the napi instance is
disabled will hang forever in napi_stop_kthread(), as it waits for
NAPIF_STATE_SCHED_THREADED to clear.

This won't happen until the next ____napi_schedule() call, which won't
happen as it's disabled.

This happens in 2 instances :

- Drivers that create but don't use napi instances (stmmac's rxtx napi
for AF_XDP for example), here it's a driver bug

- Drivers that create their napi instances in .probe(). Here, setting
threaded off while the interface is down will hang :

ip link set eth0 down
echo 1 > /sys/class/net/eth0/threaded
echo 0 > /sys/class/net/eth0/threaded
-> hang

Checking on netif_running() isn't enough, as napi instances may be
transiently disabled when changing the MTU for example, let's use a
dedicated flag to track if the instance is disabled.

This allows immediately disabling the kthread when the instance is
disabled.

This was tested on mvpp2 (probe-time napi_add) and stmmac.

Analysis

AI-generated

Technical impact

The Linux kernel contains a race condition in the network subsystem where attempting to disable a NAPI threaded state while the instance is already disabled causes the kernel to wait indefinitely in napi_stop_kthread(). This leads to a system hang, effectively denying service. The weakness is a synchronization fault that results in an infinite loop or deadlock.

Affected Systems

All Linux systems running kernel versions that contain the bug in the net subsystem, prior to the commit that introduced a dedicated flag to track disabled NAPI instances. The vulnerability is present in drivers that create but do not use NAPI instances (e.g., stmmac for AF_XDP) and in drivers that create NAPI instances during .probe() and then disable them while the interface is down.

Risk and Exploitability

The exploit requires local privileges sufficient to modify sysfs entries (e.g., /sys/class/net/<iface>/threaded) or to bring an interface down. A local attacker can trigger a kernel hang by disabling the threaded flag while the interface is down. Because the EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, the exploitation probability is uncertain, but the impact is severe for affected hosts. The CVE reveals that kernel performance may be degraded as the system becomes unresponsive.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the commit adding the dedicated flag (see the referenced git commits).
  • For drivers that create NAPI instances but do not use them, modify or disable that NAPI creation in the driver code until the kernel update is applied.
  • Avoid disabling the threaded flag while the interface is down; keep the interface running or use an up-to-date netif_running() check to ensure NAPI is not disabled prematurely.

Generated by OpenCVE AI on December 1, 2026 at 01:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-399
CWE-748
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: Use a dedicated flag to track disabled napi instances Trying to disable the napi threaded state while the napi instance is disabled will hang forever in napi_stop_kthread(), as it waits for NAPIF_STATE_SCHED_THREADED to clear. This won't happen until the next ____napi_schedule() call, which won't happen as it's disabled. This happens in 2 instances : - Drivers that create but don't use napi instances (stmmac's rxtx napi for AF_XDP for example), here it's a driver bug - Drivers that create their napi instances in .probe(). Here, setting threaded off while the interface is down will hang : ip link set eth0 down echo 1 > /sys/class/net/eth0/threaded echo 0 > /sys/class/net/eth0/threaded -> hang Checking on netif_running() isn't enough, as napi instances may be transiently disabled when changing the MTU for example, let's use a dedicated flag to track if the instance is disabled. This allows immediately disabling the kthread when the instance is disabled. This was tested on mvpp2 (probe-time napi_add) and stmmac.
Title net: Use a dedicated flag to track disabled napi instances
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:38 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM