Skip to contentSkip to conversation

CVE-2026-43253: iommu/amd: move wait_on_sem() out of spinlock

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

iommu/amd: move wait_on_sem() out of spinlock

With iommu.strict=1, the existing completion wait path can cause soft lockups under stressed environment, as wait_on_sem() busy-waits under the spinlock with interrupts disabled.

Move the completion wait in iommu_completion_wait() out of the spinlock. wait_on_sem() only polls the hardware-updated cmd_sem and does not require iommu->lock, so holding the lock during the busy wait unnecessarily increases contention and extends the time with interrupts disabled.

The Linux kernel CVE team has assigned CVE-2026-43253 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.6.128 with commit f2f65b28d802a667119147444ec2ae33eebf9a58
	Fixed in 6.12.75 with commit 715c263119fd1b918a9fcbd8a36ea5b604a46324
	Fixed in 6.18.16 with commit e15768e68820142077bbca402d8e902f64ade1b0
	Fixed in 6.19.6 with commit 496269d12072ecb219826485bdbec70c92a8eef5
	Fixed in 7.0 with commit d2a0cac10597068567d336e85fa3cbdbe8ca62bf

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-43253

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/iommu/amd/iommu.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/f2f65b28d802a667119147444ec2ae33eebf9a58
	https://git.kernel.org/stable/c/715c263119fd1b918a9fcbd8a36ea5b604a46324
	https://git.kernel.org/stable/c/e15768e68820142077bbca402d8e902f64ade1b0
	https://git.kernel.org/stable/c/496269d12072ecb219826485bdbec70c92a8eef5
	https://git.kernel.org/stable/c/d2a0cac10597068567d336e85fa3cbdbe8ca62bf