CVE-2026-143333: vhost: fix dirty logging for in-order used ring entries
In the Linux kernel, the following vulnerability has been resolved:
vhost: fix dirty logging for in-order used ring entries
With VIRTIOFINORDER, one used ring element can represent multiple buffers, so vhostaddusedninorder() can write consecutive elements to nonadjacent slots. Dirty logging combines the initial slot with a length based on the final position, which can miss written elements or log past the end of the ring.
Replay nheads[] after the write barrier and log the written slots, coalescing adjacent elements and splitting at gaps and wraps.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
After the write barrier, replay nheads[] and log the written slots, coalescing adjacent elements and splitting at gaps and ring wraps.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects Linux kernel vhost handling when VIRTIO_F_IN_ORDER is in use and vhost_add_used_n_in_order() processes used ring entries. Deployments not using the in-order virtio feature are not identified by the provided information as affected.
What is the practical impact of the faulty dirty logging?
Dirty logging can omit slots that were written, or record a range extending past the end of the used ring. This can make the dirty-memory tracking for in-order used ring updates inaccurate.
What does the fix change?
The fix replays nheads[] after the write barrier and logs the slots that were actually written. It coalesces adjacent elements while splitting logging ranges at gaps and ring wraps.