iommufd/viommu: Release the igroup lock on the vdevice_size error path
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 |
|
|
6.18.447.1.87.2In the Linux kernel, the following vulnerability has been resolved:
iommufd/viommu: Release the igroup lock on the vdevice_size error path
iommufd_vdevice_alloc_ioctl() takes idev->igroup->lock, then validates the driver's vdevice_size against the core structure size with a WARN_ON_ONCE. On failure that guard jumps to out_put_idev, below out_unlock_igroup, so it skips the mutex_unlock(), leaving the igroup lock held and deadlocking the next vDEVICE operation on that group.
Jump to out_unlock_igroup instead.
From the CVE record · Linux
The Linux kernel's iommufd/viommu code can leave an igroup lock held when a vdevice size check fails. A caller triggering this ioctl error path can deadlock the next vDEVICE operation on that group. The input does not specify authentication requirements or whether other user interaction is needed.
Engineers running Linux kernels with iommufd/viommu should check their versions; affected versions were not provided.