7.8high
vsock/virtio: avoid refilling the RX queue after teardown
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: avoid refilling the RX queue after teardown Commit b917507e5ad9 ("vsock/virtio: stop workers during the .remove()") made the RX worker jump to its common exit when rx_run is clear. That exit still refills the RX queue when the buffer count is low, so work queued across virtio_vsock_vqs_del() can add buffers after the virtqueues have been deleted. BUG: KASAN: slab-use-after-free in virtqueue_add_sgs Read of size 4 by task kworker/0:1 Workqueue: virtio_vsock virtio_transport_rx_work Call Trace: virtqueue_add_sgs (drivers/virtio/virtio_ring.c:2796) virtio_vsock_rx_fill (net/vmw_vsock/virtio_transport.c:332) virtio_transport_rx_work (net/vmw_vsock/virtio_transport.c:701) process_one_work (kernel/workqueue.c:3314) worker_thread (kernel/workqueue.c:3478) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) ... Freed by task 141: kfree (mm/slub.c:6566) vp_del_vq (drivers/virtio/virtio_pci_common.c:259) vp_del_vqs (drivers/virtio/virtio_pci_common.c:285) virtio_vsock_freeze (net/vmw_vsock/virtio_transport.c:912) virtio_device_freeze (drivers/virtio/virtio.c:658) virtio_pci_freeze (drivers/virtio/virtio_pci_common.c:601) pci_pm_freeze (drivers/pci/pci-driver.c:1098) device_suspend (drivers/base/power/main.c:1968) Kernel panic - not syncing: KASAN: panic_on_warn set ... Jump to a no-refill exit when rx_run is clear, leaving the normal exit to replenish a running queue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b917507e5ad983085d29069369778b16aa03a0a8 before a7658508f5fe8f1077a65e8cb9535d3426f37a2f, from b917507e5ad983085d29069369778b16aa03a0a8 before 1aa21e7c8702a7c37cd7d3cace1a652cfa5e8171, from b917507e5ad983085d29069369778b16aa03a0a8 before 4d37e3525cc346a1421c1bdeaad5848e249fc60c, from b917507e5ad983085d29069369778b16aa03a0a8 before 9d80a04129a6c27a690cb69de3fe3f50be5aa8b9, from b917507e5ad983085d29069369778b16aa03a0a8 before a309b74e3fc052352ab778500449cb9c3853c363, from b917507e5ad983085d29069369778b16aa03a0a8 before 38c7763fdc533edb34dc8f4489c260e8ba2ccae9, from b917507e5ad983085d29069369778b16aa03a0a8 before e82a5faea2e3886dfb2a65ce092a132e7e896915, from b917507e5ad983085d29069369778b16aa03a0a8 before a31e0ad444698d8aa7534a0f89fda543730f97a5 and 1 more Not affected: before 5.3, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: avoid refilling the RX queue after teardown Commit b917507e5ad9 ("vsock/virtio: stop workers during the .remove()") made the RX worker jump to its common exit when rx_run is clear. That exit still refills the RX queue when the buffer count is low, so work queued across virtio_vsock_vqs_del() can add buffers after the virtqueues have been deleted. BUG: KASAN: slab-use-after-free in virtqueue_add_sgs Read of size 4 by task kworker/0:1 Workqueue: virtio_vsock virtio_transport_rx_work Call Trace: virtqueue_add_sgs (drivers/virtio/virtio_ring.c:2796) virtio_vsock_rx_fill (net/vmw_vsock/virtio_transport.c:332) virtio_transport_rx_work (net/vmw_vsock/virtio_transport.c:701) process_one_work (kernel/workqueue.c:3314) worker_thread (kernel/workqueue.c:3478) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) ... Freed by task 141: kfree (mm/slub.c:6566) vp_del_vq (drivers/virtio/virtio_pci_common.c:259) vp_del_vqs (drivers/virtio/virtio_pci_common.c:285) virtio_vsock_freeze (net/vmw_vsock/virtio_transport.c:912) virtio_device_freeze (drivers/virtio/virtio.c:658) virtio_pci_freeze (drivers/virtio/virtio_pci_common.c:601) pci_pm_freeze (drivers/pci/pci-driver.c:1098) device_suspend (drivers/base/power/main.c:1968) Kernel panic - not syncing: KASAN: panic_on_warn set ... Jump to a no-refill exit when rx_run is clear, leaving the normal exit to replenish a running queue.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: vsock/virtio: evitar rellenar la cola RX después del desmontaje El commit b917507e5ad9 ('vsock/virtio: detener los workers durante el .remove()') hizo que el worker RX saltara a su salida común cuando rx_run está despejado. Esa salida todavía rellena la cola RX cuando el recuento de búferes es bajo, por lo que el trabajo en cola a través de virtio_vsock_vqs_del() puede añadir búferes después de que las virtqueues hayan sido eliminadas. BUG: KASAN: uso después de liberación de slab en virtqueue_add_sgs Lectura de tamaño 4 por la tarea kworker/0:1 Cola de trabajo: virtio_vsock virtio_transport_rx_work Rastro de Llamada: virtqueue_add_sgs (drivers/virtio/virtio_ring.c:2796) virtio_vsock_rx_fill (net/vmw_vsock/virtio_transport.c:332) virtio_transport_rx_work (net/vmw_vsock/virtio_transport.c:701) process_one_work (kernel/workqueue.c:3314) worker_thread (kernel/workqueue.c:3478) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) ... Liberado por la tarea 141: kfree (mm/slub.c:6566) vp_del_vq (drivers/virtio/virtio_pci_common.c:259) vp_del_vqs (drivers/virtio/virtio_pci_common.c:285) virtio_vsock_freeze (net/vmw_vsock/virtio_transport.c:912) virtio_device_freeze (drivers/virtio/virtio.c:658) virtio_pci_freeze (drivers/virtio/virtio_pci_common.c:601) pci_pm_freeze (drivers/pci/pci-driver.c:1098) device_suspend (drivers/base/power/main.c:1968) Pánico del kernel - no sincronizando: KASAN: panic_on_warn establecido ... Saltar a una salida sin recarga cuando rx_run está despejado, dejando la salida normal para reponer una cola en ejecución.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74613 changed 2026-10-16 | CVE Terms of Use |
| NVD | CVE-2026-74613 changed 2026-10-16 | Public domain |