Linux kernel use-after-free in iommufd event queue release
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: Fix event queue release use-after-free
iommufd_eventq_fops_release() drops the file's users reference before reading eventq->ictx. Once that reference is dropped, IOMMU_DESTROY in another thread can remove and free the event queue, so the later load accesses freed memory.
Read ictx while the users reference still pins the event queue, then drop the reference and put the saved context. The context reference taken by iommufd_eventq_init() keeps ictx valid until the put. Fault and vEVENTQ file descriptors share this release path.
From the CVE record · Linux
The Linux kernel's iommufd event queue release path can read freed memory after dropping a reference to the queue. This can occur when another thread concurrently removes the queue with IOMMU_DESTROY; fault and vEVENTQ file descriptors share the affected path. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with iommufd should check their kernel against the vendor advisory; affected versions were not provided.