# CVE-2026-139791: net: Use a dedicated flag to track disabled napi instances

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-11-30T13:38:02.126Z
- Modified: 2026-11-30T14:20:12.857Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 689883de94dd8a43a0ea77311327effab240afda before e559223fc6757b86fdc88c5d4d31268dfd4d10f8; from 689883de94dd8a43a0ea77311327effab240afda before 019739e177c18fb940a1247e2a0520f632abe1c3; from 689883de94dd8a43a0ea77311327effab240afda before 8dc87fc5d6a0eb337744737008177342a708bf36; 6.17 (not affected: before 6.17; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/e559223fc6757b86fdc88c5d4d31268dfd4d10f8>
- <https://git.kernel.org/stable/c/019739e177c18fb940a1247e2a0520f632abe1c3>
- <https://git.kernel.org/stable/c/8dc87fc5d6a0eb337744737008177342a708bf36>

## Sources

- CVE List: [CVE-2026-139791](https://www.cve.org/CVERecord?id=CVE-2026-139791), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139791](https://nvd.nist.gov/vuln/detail/CVE-2026-139791), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139791 · Whole record: https://cve.day/CVE-2026-139791.json · Rebuilt by cve.day 2026-11-30T14:33:23.741Z
