Linux
iommu/mediatek: fix use-after-free on probe deferral
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8412e5dd24ffc8bc21a00bfaa0b80d4596cdc9da, < 896ec55da3b90bdb9fc04fedc17ad8c359b2eee5
- >= 26593928564cf5b576ff05d3cbd958f57c9534bb, < 5c04217d06a1161aaf36267e9d971ab6f847d5a7
- >= 26593928564cf5b576ff05d3cbd958f57c9534bb, < 1ef70a0b104ae8011811f60bcfaa55ff49385171
- >= 26593928564cf5b576ff05d3cbd958f57c9534bb, < f6c08d3aa441bbc1956e9d65f1cbb89113a5aa8a
- >= 26593928564cf5b576ff05d3cbd958f57c9534bb, < de83d4617f9fe059623e97acf7e1e10d209625b5
- 51080de72e26771f0ed9d44982974279ccbc92b8
- >= 6.1.2, < 6.1.160
- >= 6.0.16, < 6.1
Fixed in 896ec55da3b90bdb9fc04fedc17ad8c359b2eee5, 5c04217d06a1161aaf36267e9d971ab6f847d5a7, 1ef70a0b104ae8011811f60bcfaa55ff49385171, f6c08d3aa441bbc1956e9d65f1cbb89113a5aa8a, de83d4617f9fe059623e97acf7e1e10d209625b5, 6.1.160, 6.1
- 6.2
Fixed in 0, 6.1.160, 6.6.120, 6.12.64, 6.18.3, 6.19
Mitigation
Upgrade Linux to 896ec55da3b90bdb9fc04fedc17ad8c359b2eee5 or 5c04217d06a1161aaf36267e9d971ab6f847d5a7 or 1ef70a0b104ae8011811f60bcfaa55ff49385171 or f6c08d3aa441bbc1956e9d65f1cbb89113a5aa8a or de83d4617f9fe059623e97acf7e1e10d209625b5 or 6.1.160 or 6.1 or later.
Upgrade Linux to 0 or 6.1.160 or 6.6.120 or 6.12.64 or 6.18.3 or 6.19 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.