AZL-118592: CVE-2026-143329 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
vduse: avoid infinite loop when no affinity CPU is online
If all CPUs in vq->irqaffinity are offline, cpumasknext() walks to the end of the mask, and the loop then resets the cursor to IRQUNBOUND and restarts the scan. When VDUSEVQINJECTIRQ is issued, the intersection of vq->irqaffinity and cpuonlinemask is empty, so the caller busy-loops in kernel context on its current CPU (e.g. CPU2).
Replace the while loop in vdusevqupdateeffectivecpu() with cpumasknextandwrap() to find the intersection of vq->irqaffinity and cpuonlinemask in a single wrapped scan. If the intersection is empty, set currcpu to IRQUNBOUND and let the existing unbound workqueue handle injection, avoiding repeated rescans when all CPUs in the affinity are offline. Use cpusreadlock()/cpusreadunlock() to keep the selected CPU online.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In vduse_vq_update_effective_cpu(), replace the while-loop scan with cpumask_next_and_wrap() over vq->irq_affinity and cpu_online_mask, protect CPU selection with cpus_read_lock()/cpus_read_unlock(), and set curr_cpu to IRQ_UNBOUND when the intersection is empty so the existing unbound workqueue handles IRQ injection.
Event History
Frequently Asked Questions
What condition is required to trigger the busy loop?
An IRQ injection must be issued with VDUSE_VQ_INJECT_IRQ while every CPU in the virtual queue's irq_affinity mask is offline. Under that condition, the affinity mask has no intersection with the online CPU mask.
What is the impact when the condition is triggered?
The caller can busy-loop in kernel context on its current CPU because the CPU-selection scan repeatedly restarts. This can consume CPU resources rather than dispatching the injection through the unbound workqueue.
What happens after the fix when no affinity CPU is online?
The effective CPU is set to IRQ_UNBOUND, allowing the existing unbound workqueue to handle IRQ injection. The updated selection logic also uses CPU read locking so a selected CPU remains online during the operation.