Linux
iommu/amd: move wait_on_sem() out of spinlock
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4bf5beef578e46393f11eb69dda7d17a065e05ff, < 69d9339c02eddfc2a345be7220651068a3684383
- >= 4bf5beef578e46393f11eb69dda7d17a065e05ff, < f2f65b28d802a667119147444ec2ae33eebf9a58
- >= 4bf5beef578e46393f11eb69dda7d17a065e05ff, < 715c263119fd1b918a9fcbd8a36ea5b604a46324
- >= 4bf5beef578e46393f11eb69dda7d17a065e05ff, < e15768e68820142077bbca402d8e902f64ade1b0
- >= 4bf5beef578e46393f11eb69dda7d17a065e05ff, < 496269d12072ecb219826485bdbec70c92a8eef5
- >= 4bf5beef578e46393f11eb69dda7d17a065e05ff, < d2a0cac10597068567d336e85fa3cbdbe8ca62bf
Fixed in 69d9339c02eddfc2a345be7220651068a3684383, f2f65b28d802a667119147444ec2ae33eebf9a58, 715c263119fd1b918a9fcbd8a36ea5b604a46324, e15768e68820142077bbca402d8e902f64ade1b0, 496269d12072ecb219826485bdbec70c92a8eef5, d2a0cac10597068567d336e85fa3cbdbe8ca62bf
- 4.9
Fixed in 0, 6.1.191, 6.6.128, 6.12.75, 6.18.16, 6.19.6, 7.0
Mitigation
Upgrade Linux to 69d9339c02eddfc2a345be7220651068a3684383 or f2f65b28d802a667119147444ec2ae33eebf9a58 or 715c263119fd1b918a9fcbd8a36ea5b604a46324 or e15768e68820142077bbca402d8e902f64ade1b0 or 496269d12072ecb219826485bdbec70c92a8eef5 or d2a0cac10597068567d336e85fa3cbdbe8ca62bf or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.128 or 6.12.75 or 6.18.16 or 6.19.6 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.