{"id":"CVE-2026-143329","state":"PUBLISHED","title":"vduse: avoid infinite loop when no affinity CPU is online","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvduse: avoid infinite loop when no affinity CPU is online\n\nIf all CPUs in vq->irq_affinity are offline, cpumask_next() walks to the\nend of the mask, and the loop then resets the cursor to IRQ_UNBOUND and\nrestarts the scan. When VDUSE_VQ_INJECT_IRQ is issued, the intersection of\nvq->irq_affinity and cpu_online_mask is empty, so the caller busy-loops in\nkernel context on its current CPU (e.g. CPU2).\n\nReplace the while loop in vduse_vq_update_effective_cpu() with\ncpumask_next_and_wrap() to find the intersection of vq->irq_affinity and\ncpu_online_mask in a single wrapped scan. If the intersection is empty, set\ncurr_cpu to IRQ_UNBOUND and let the existing unbound workqueue handle\ninjection, avoiding repeated rescans when all CPUs in the affinity are\noffline. Use cpus_read_lock()/cpus_read_unlock() to keep the selected CPU\nonline.","publishedAt":"2026-12-03T09:21:54.243Z","updatedAt":"2026-12-03T09:21:54.243Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"28f6288eb63d5979fa6758e64f52e4d55cf184a8","status":"affected","lessThan":"373185bdfb886a01b404ac10c4d2d5a92f3c04cb","versionType":"git"},{"version":"28f6288eb63d5979fa6758e64f52e4d55cf184a8","status":"affected","lessThan":"9a323a3ef0bcbae72bf2593058c029ba09dccbba","versionType":"git"},{"version":"28f6288eb63d5979fa6758e64f52e4d55cf184a8","status":"affected","lessThan":"cf0a5805d43236e308f14188f9737ddcf83fb53a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_user/vduse_dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_user/vduse_dev.c"]}],"references":["https://git.kernel.org/stable/c/373185bdfb886a01b404ac10c4d2d5a92f3c04cb","https://git.kernel.org/stable/c/9a323a3ef0bcbae72bf2593058c029ba09dccbba","https://git.kernel.org/stable/c/cf0a5805d43236e308f14188f9737ddcf83fb53a"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143329.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143329","state":"PUBLISHED","datePublished":"2026-12-03T09:21:54.243Z","dateUpdated":"2026-12-03T09:21:54.243Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.367Z"},"containers":{"cna":{"title":"vduse: avoid infinite loop when no affinity CPU is online","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvduse: avoid infinite loop when no affinity CPU is online\n\nIf all CPUs in vq->irq_affinity are offline, cpumask_next() walks to the\nend of the mask, and the loop then resets the cursor to IRQ_UNBOUND and\nrestarts the scan. When VDUSE_VQ_INJECT_IRQ is issued, the intersection of\nvq->irq_affinity and cpu_online_mask is empty, so the caller busy-loops in\nkernel context on its current CPU (e.g. CPU2).\n\nReplace the while loop in vduse_vq_update_effective_cpu() with\ncpumask_next_and_wrap() to find the intersection of vq->irq_affinity and\ncpu_online_mask in a single wrapped scan. If the intersection is empty, set\ncurr_cpu to IRQ_UNBOUND and let the existing unbound workqueue handle\ninjection, avoiding repeated rescans when all CPUs in the affinity are\noffline. Use cpus_read_lock()/cpus_read_unlock() to keep the selected CPU\nonline."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"28f6288eb63d5979fa6758e64f52e4d55cf184a8","status":"affected","lessThan":"373185bdfb886a01b404ac10c4d2d5a92f3c04cb","versionType":"git"},{"version":"28f6288eb63d5979fa6758e64f52e4d55cf184a8","status":"affected","lessThan":"9a323a3ef0bcbae72bf2593058c029ba09dccbba","versionType":"git"},{"version":"28f6288eb63d5979fa6758e64f52e4d55cf184a8","status":"affected","lessThan":"cf0a5805d43236e308f14188f9737ddcf83fb53a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_user/vduse_dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_user/vduse_dev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/373185bdfb886a01b404ac10c4d2d5a92f3c04cb"},{"url":"https://git.kernel.org/stable/c/9a323a3ef0bcbae72bf2593058c029ba09dccbba"},{"url":"https://git.kernel.org/stable/c/cf0a5805d43236e308f14188f9737ddcf83fb53a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:54.243Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}