CVE-2026-139698: virtio_pci_modern: move avq cleanup from reset to del_vqs
In the Linux kernel, the following vulnerability has been resolved:
virtiopcimodern: move avq cleanup from reset to delvqs
vpmodernavqcleanup() detaches unused buffers from the admin virtqueue. Calling it from vpreset() is incorrect: virtqueuegetbuf in the avq interrupt handler can race with virtqueuedetachunusedbuf in cleanup, and getbuf after detach is not documented as valid.
The root cause is that detaching buffers does not belong in reset at all - reset quiesces the device, while cleanup belongs where the virtqueue is about to be destroyed, from delvqs.
Affected Software
Event History
Frequently Asked Questions
What condition creates the unsafe race?
The race occurs when admin virtqueue cleanup detaches unused buffers during device reset while the admin virtqueue interrupt handler concurrently calls virtqueue_get_buf(). Calling get_buf after a buffer has been detached is not documented as valid.
Where should the cleanup occur instead of during reset?
Unused admin virtqueue buffers should be detached from del_vqs, when the virtqueue is about to be destroyed. Reset should only quiesce the device.
How can I determine whether my kernel includes the resolution?
The provided data does not list affected or fixed kernel versions. Compare the relevant virtio_pci_modern code with the changes referenced by the listed stable-kernel commits, specifically whether admin virtqueue cleanup is performed from del_vqs rather than vp_reset.