Skip to contentSkip to conversation

CVE-2026-90113: netdevsim: update queue NAPI association on queue reset

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

netdevsim: update queue NAPI association on queue reset

In netdevsim, receive queues (struct nsim_rq) embed their own struct napi_struct. When queue reset is performed (e.g. via queue_reset debugfs), nsim_queue_start() swaps in a newly allocated struct nsim_rq, and nsim_queue_mem_free() later deletes and frees the old one.

However, nsim_queue_start() failed to update the queue-to-NAPI mapping via netif_queue_set_napi(). As a result, dev->_rx[idx].napi continued to point to the old NAPI struct. After the old queue was freed, a subsequent queue dump via Netlink (NETDEV_CMD_QUEUE_GET) triggered a KASAN slab-use-after-free read in nla_put_napi_id() when accessing rxq->napi->napi_id.

Fix this by calling netif_queue_set_napi() in nsim_queue_start() to associate the new NAPI with the RX queue, and clear the association with netif_queue_set_napi(..., NULL) in nsim_del_napi() during teardown.

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

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

	Issue introduced in 6.14 with commit 5bc8e8dbef27b73bd7b6d1fd5108b4fd4c6d469f and fixed in 6.18.52 with commit b8f32b0804b4bf0cba0ee0a093e3fd74f11d7166
	Issue introduced in 6.14 with commit 5bc8e8dbef27b73bd7b6d1fd5108b4fd4c6d469f and fixed in 7.2.6 with commit db038ac4dca0fa626199e9c297eddd8362be0550
	Issue introduced in 6.14 with commit 5bc8e8dbef27b73bd7b6d1fd5108b4fd4c6d469f and fixed in 7.3-rc1 with commit 07e98a4d5e9c292eae97c9cc5ab0937384e48492

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

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/netdevsim/netdev.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/b8f32b0804b4bf0cba0ee0a093e3fd74f11d7166
	https://git.kernel.org/stable/c/db038ac4dca0fa626199e9c297eddd8362be0550
	https://git.kernel.org/stable/c/07e98a4d5e9c292eae97c9cc5ab0937384e48492