net: Use a dedicated flag to track disabled napi instances

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux689883de94dd8a43a0ea77311327effab240afda to before e559223fc6757b86fdc88c5d4d31268dfd4d10f8 Affected689883de94dd8a43a0ea77311327effab240afda to before 019739e177c18fb940a1247e2a0520f632abe1c3 Affected689883de94dd8a43a0ea77311327effab240afda to before 8dc87fc5d6a0eb337744737008177342a708bf36 Affected
Linux Linux6.17 Affectedbefore 6.17 Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc2 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.