iommufd: Break the loop on failure in iommufd_fault_fops_read()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iommufd: Break the loop on failure in iommufd_fault_fops_read()
On a copy_to_user() failure inside the inner list_for_each_entry, only the inner loop breaks; the outer while re-fetches the just-restored fault group and retries the failing copy_to_user() forever, spinning the reader at 100% CPU with fault->mutex held.
Check rc after the inner loop and break the outer while as well.
From the CVE record · Linux
The Linux kernel's iommufd_fault_fops_read() can loop indefinitely if copy_to_user() fails while processing a fault group. The reader then consumes 100% CPU while holding fault->mutex. The input does not specify attacker access or authentication requirements.
Engineers running Linux kernels with iommufd should check whether their kernel includes the fix; affected versions are not specified.