HIGH Introduced in 6.14
netdevsim QueueReset UAF
CVE-2026-90113
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
Risk summary
A use-after-free vulnerability exists in the netdevsim driver triggered during a queue reset operation. A local user with access to debugfs can cause a kernel memory read from freed memory, potentially leading to sensitive information disclosure or a system crash.
Vulnerability analysis
When a receive queue is reset in the netdevsim driver, the code installs a new queue but forgets to update the network device’s NAPI association. The device therefore continues to point to the old NAPI context after the old queue has been freed. A later Netlink request to dump queue information then reads from that freed memory, causing a use-after-free. The fix updates the NAPI association whenever a queue is replaced and clears it during teardown so no stale reference survives. A local user can reach this through the driver’s queue reset and Netlink dump interfaces.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| mainline | 6.14 | 7.3-rc1 | 07e98a4d5e9c |
| 6.18 | 6.14 | 6.18.52 | b8f32b0804b4 |
| 7.2 | 6.14 | 7.2.6 | db038ac4dca0 |