iommu/mediatek: fix use-after-free on probe deferral
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
51080de72e26771f0ed9d44982974279ccbc92b8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iommu/mediatek: fix use-after-free on probe deferral
The driver is dropping the references taken to the larb devices during probe after successful lookup as well as on errors. This can potentially lead to a use-after-free in case a larb device has not yet been bound to its driver so that the iommu driver probe defers.
Fix this by keeping the references as expected while the iommu driver is bound.
From the CVE record · Linux
The MediaTek IOMMU driver can drop references to larb devices during probe deferral, potentially causing a use-after-free when a larb device has not yet bound to its driver. The input does not describe how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the MediaTek IOMMU driver should check their systems; affected versions are not specified.