Description
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: serialize sequence allocation under concurrent TLB invalidations With concurrent TLB invalidations, completion wait randomly gets timed out because cmd_sem_val was incremented outside the IOMMU spinlock, allowing CMD_COMPL_WAIT commands to be queued out of sequence and breaking the ordering assumption in wait_on_sem(). Move the cmd_sem_val increment under iommu->lock so completion sequence allocation is serialized with command queuing. And remove the unnecessary return.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f2f65b28d802a667119147444ec2ae33eebf9a58 to < d51bf43193b1e95dc4e34e540dc76e19def2ae5aaffected715c263119fd1b918a9fcbd8a36ea5b604a46324 to < fca7aa0264ae99e5ff287d0ced5af0b82b121c4faffectede15768e68820142077bbca402d8e902f64ade1b0 to < 5000ce7fcb31067566a1a1a2e5b5bbff93625242affected496269d12072ecb219826485bdbec70c92a8eef5 to < 48caa7542a795c9679ec1bd1bc2592e05a7369a4affectedd2a0cac10597068567d336e85fa3cbdbe8ca62bf to < 9e249c48412828e807afddc21527eb734dc9bd3daffected69d9339c02eddfc2a345be7220651068a3684383affected6.1.191 to < 6.2affected
Linux Linux
Default version status: unaffected
6.6.128 to < 6.6.140affected6.12.75 to < 6.12.88affected
References
- https://git.kernel.org/stable/c/d51bf43193b1e95dc4e34e540dc76e19def2ae5a ↗
- https://git.kernel.org/stable/c/fca7aa0264ae99e5ff287d0ced5af0b82b121c4f ↗
- https://git.kernel.org/stable/c/5000ce7fcb31067566a1a1a2e5b5bbff93625242 ↗
- https://git.kernel.org/stable/c/48caa7542a795c9679ec1bd1bc2592e05a7369a4 ↗
- https://git.kernel.org/stable/c/9e249c48412828e807afddc21527eb734dc9bd3d ↗