Skip to contentSkip to conversation

CVE-2026-31691: igb: remove napi_synchronize() in igb_down()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

igb: remove napi_synchronize() in igb_down()

When an AF_XDP zero-copy application terminates abruptly (e.g., kill -9), the XSK buffer pool is destroyed but NAPI polling continues. igb_clean_rx_irq_zc() repeatedly returns the full budget, preventing napi_complete_done() from clearing NAPI_STATE_SCHED.

igb_down() calls napi_synchronize() before napi_disable() for each queue vector. napi_synchronize() spins waiting for NAPI_STATE_SCHED to clear, which never happens. igb_down() blocks indefinitely, the TX watchdog fires, and the TX queue remains permanently stalled.

napi_disable() already handles this correctly: it sets NAPI_STATE_DISABLE. After a full-budget poll, __napi_poll() checks napi_disable_pending(). If set, it forces completion and clears NAPI_STATE_SCHED, breaking the loop that napi_synchronize() cannot.

napi_synchronize() was added in commit 41f149a285da ("igb: Fix possible panic caused by Rx traffic arrival while interface is down"). napi_disable() provides stronger guarantees: it prevents further scheduling and waits for any active poll to exit.
Other Intel drivers (ixgbe, ice, i40e) use napi_disable() without a preceding napi_synchronize() in their down paths.

Remove redundant napi_synchronize() call and reorder napi_disable() before igb_set_queue_napi() so the queue-to-NAPI mapping is only cleared after polling has fully stopped.

The Linux kernel CVE team has assigned CVE-2026-31691 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit 2c6196013f84651772388a86dfd4bb033d0c0d45 and fixed in 6.18.23 with commit 4700471775746058c962ded6e659bf908fd76e13
	Issue introduced in 6.14 with commit 2c6196013f84651772388a86dfd4bb033d0c0d45 and fixed in 6.19.13 with commit 27f5997686ee7fb7ac01be72b2010f168a3409fc
	Issue introduced in 6.14 with commit 2c6196013f84651772388a86dfd4bb033d0c0d45 and fixed in 7.0 with commit b1e067240379f950a0022208e0685f3465c211cb

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-31691

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/intel/igb/igb_main.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4700471775746058c962ded6e659bf908fd76e13
	https://git.kernel.org/stable/c/27f5997686ee7fb7ac01be72b2010f168a3409fc
	https://git.kernel.org/stable/c/b1e067240379f950a0022208e0685f3465c211cb