CVE-2026-99301

virtio_net: atomically disable rx mode work

Published Nov 16, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

virtio_net: atomically disable rx mode work

virtio-net uses a boolean to gate rx_mode_work during device teardown.
The flag is changed under RTNL, but ndo_set_rx_mode checks it under the
address-list lock. A callback can therefore pass the check and enqueue work
after teardown has flushed it. The work is also enabled before late
probe operations that can fail, allowing probe unwind to free the netdev
with work still queued.

KASAN reports the worker using a virtqueue that probe unwind already freed:

BUG: KASAN: slab-use-after-free in virtqueue_add_split
Workqueue: events virtnet_rx_mode_work
Call Trace:
virtqueue_add_split (drivers/virtio/virtio_ring.c:706)
virtqueue_add_sgs (drivers/virtio/virtio_ring.c:2839)
virtnet_send_command_reply (drivers/net/virtio_net.c:3565)
virtnet_rx_mode_work (drivers/net/virtio_net.c:3833)
process_one_work (kernel/workqueue.c:3322)
worker_thread (kernel/workqueue.c:3405)
Freed by task 119:
kfree (mm/slub.c:6625)
vp_del_vq.isra.0 (drivers/virtio/virtio_pci_common.c:259)
vp_del_vqs (drivers/virtio/virtio_pci_common.c:285)
virtnet_probe (drivers/net/virtio_net.c:7129)

Use the workqueue disable mechanism to atomically reject new queue attempts
and drain running work. Keep work disabled until probe succeeds or restore
has reattached the netdev, then enable it and replay receive-mode state for
a running interface. Disable it before resource teardown in freeze and
remove.

Analysis

AI-generated

Technical impact

The vulnerability resides in the virtio_net driver of the Linux kernel. The code uses a boolean flag to guard work that toggles the receive mode of virtual network interfaces. During device teardown or when probe operations fail, the flag is cleared before the work queue is disabled, causing work to be scheduled on a virtqueue that has already been freed. This triggers a use‑after‑free exploit reported by KASAN. If an attacker can influence the timing of the teardown or probe operations, they could trigger the freed virtqueue and corrupt kernel memory, potentially allowing privilege escalation or system compromise.

Affected Systems

All Linux kernel implementations that include the virtio_net driver and have not applied the patch exemplified in the commit referenced in the CVE. The patch lands in recent mainstream kernel releases; any system running these kernels before the commit is affected. The specific affected kernel series is not listed in the provided data.

Risk and Exploitability

Use‑after‑free vulnerabilities in the kernel are considered critical because they can overwrite control data and execute arbitrary code with ring‑0 privileges. The EPSS score is not available and the vulnerability is not currently listed in CISA’s KEV catalog, but its severity is inferred to be high due to the kernel memory corruption. Attackers would need local or privileged access to a VM or device that can control the virtio interface, or to corrupt memory via device drivers.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the patch that disables the virtio_net receive mode work atomically before teardown (the commit referenced in the CVE).
  • If an immediate kernel upgrade is not possible, manually apply the patch to the kernel source, rebuild, and reboot the host.
  • As a temporary mitigation, ensure that no virtio network interfaces are referenced during device removal or probe failure; restrict the use of virtio networking if possible.
  • Monitor system logs for KASAN or kernel panic messages indicating use‑after‑free.

Generated by OpenCVE AI on November 16, 2026 at 11:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: virtio_net: atomically disable rx mode work virtio-net uses a boolean to gate rx_mode_work during device teardown. The flag is changed under RTNL, but ndo_set_rx_mode checks it under the address-list lock. A callback can therefore pass the check and enqueue work after teardown has flushed it. The work is also enabled before late probe operations that can fail, allowing probe unwind to free the netdev with work still queued. KASAN reports the worker using a virtqueue that probe unwind already freed: BUG: KASAN: slab-use-after-free in virtqueue_add_split Workqueue: events virtnet_rx_mode_work Call Trace: virtqueue_add_split (drivers/virtio/virtio_ring.c:706) virtqueue_add_sgs (drivers/virtio/virtio_ring.c:2839) virtnet_send_command_reply (drivers/net/virtio_net.c:3565) virtnet_rx_mode_work (drivers/net/virtio_net.c:3833) process_one_work (kernel/workqueue.c:3322) worker_thread (kernel/workqueue.c:3405) Freed by task 119: kfree (mm/slub.c:6625) vp_del_vq.isra.0 (drivers/virtio/virtio_pci_common.c:259) vp_del_vqs (drivers/virtio/virtio_pci_common.c:285) virtnet_probe (drivers/net/virtio_net.c:7129) Use the workqueue disable mechanism to atomically reject new queue attempts and drain running work. Keep work disabled until probe succeeds or restore has reattached the netdev, then enable it and replay receive-mode state for a running interface. Disable it before resource teardown in freeze and remove.
Title virtio_net: atomically disable rx mode work
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 16, 2026, 9:59 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 16, 2026, 10:17 AM
Modified
Nov 16, 2026, 10:17 AM