Skip to contentSkip to conversation

CVE-2026-98381: veth: manage XDP program pointers during channel resize

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 9

lore
Share & tools
lore
#0 lore raw

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

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

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

veth: manage XDP program pointers during channel resize

veth_set_channels() tears down XDP resources for removed RX queues without clearing rq->xdp_prog. If the program is then detached or replaced, those queues keep the old pointer after bpf_prog_put(). A later channel increase can re-enable NAPI and run the freed program.

  BUG: unable to handle page fault for address: ffffc90000256048
  Oops: Oops: 0000 [#1] SMP KASAN NOPTI
  RIP: veth_xdp_rcv_skb (include/linux/filter.h:779
                         include/net/xdp.h:696 drivers/net/veth.c:820)
  Call Trace:
   veth_xdp_rcv (drivers/net/veth.c:941)
   veth_poll (drivers/net/veth.c:986)
   __napi_poll (net/core/dev.c:7787)
   net_rx_action (net/core/dev.c:7850 net/core/dev.c:8007)
   handle_softirqs (kernel/softirq.c:645)
  Kernel panic - not syncing: Fatal exception in interrupt

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

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

	Issue introduced in 5.15 with commit 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 and fixed in 5.15.222 with commit 7a8e143109ff2736dc79e41dcd55af7ceab7520a
	Issue introduced in 5.15 with commit 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 and fixed in 6.1.189 with commit 1a5c5b9c64ba5f39dba55da6e12561ca56eeb758
	Issue introduced in 5.15 with commit 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 and fixed in 6.6.158 with commit f0e8dba8c224981e53c792c6b3dbb7604fb2c2c6
	Issue introduced in 5.15 with commit 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 and fixed in 6.12.112 with commit 3c10a5dd0d38f506f671dbb59e9d0ee4c72076f9
	Issue introduced in 5.15 with commit 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 and fixed in 6.18.55 with commit 25bb7c36225220d30f404d7e29d2e052bc5f4b99
	Issue introduced in 5.15 with commit 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 and fixed in 7.2.9 with commit 43f6b647f209591b1e3f726bb16b8dcba6b95908
	Issue introduced in 5.15 with commit 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 and fixed in 7.3-rc5 with commit 7104a370714346b667712913dc16abf14bbc97ed

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-98381

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/veth.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/7a8e143109ff2736dc79e41dcd55af7ceab7520a
	https://git.kernel.org/stable/c/1a5c5b9c64ba5f39dba55da6e12561ca56eeb758
	https://git.kernel.org/stable/c/f0e8dba8c224981e53c792c6b3dbb7604fb2c2c6
	https://git.kernel.org/stable/c/3c10a5dd0d38f506f671dbb59e9d0ee4c72076f9
	https://git.kernel.org/stable/c/25bb7c36225220d30f404d7e29d2e052bc5f4b99
	https://git.kernel.org/stable/c/43f6b647f209591b1e3f726bb16b8dcba6b95908
	https://git.kernel.org/stable/c/7104a370714346b667712913dc16abf14bbc97ed