Linux
iommu/msm: Unwind probe state on registration failure
In the Linux kernel, the following vulnerability has been resolved: iommu/msm: Unwind probe state on registration failure msm_iommu_probe() adds its devm-managed IOMMU object to qcom_iommu_devices before adding the IOMMU sysfs device and registering it with the IOMMU core. If iommu_device_sysfs_add() fails, probe returns with the object still on qcom_iommu_devices. The driver core then releases the devm allocation, leaving a dangling list entry that later list walks may dereference. If iommu_device_register() fails, the same dangling list entry remains and the sysfs device is left registered as well. Unwind the sysfs device and global list entry in reverse setup order on the corresponding failure paths.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 42df43b36163ed7d0ab13992e411093252903273, < 51424c14dbdadc8c2ad4abf842265a50f69d78aa
- >= 42df43b36163ed7d0ab13992e411093252903273, < 6a1ae472113762f794682229a0f233f1ee0f69a4
- >= 42df43b36163ed7d0ab13992e411093252903273, < 51e37f9179387b6e3fa64a3d3b4fece1a38b3a02
- >= 42df43b36163ed7d0ab13992e411093252903273, < f532401be9312ecd166f616bb74a65b0b4c150fa
- >= 42df43b36163ed7d0ab13992e411093252903273, < 7f7074a886c4a93e3d12076ce60a510a1ebe400c
- >= 42df43b36163ed7d0ab13992e411093252903273, < 535a200220ca2c83bc8bf54bd2cbe045d6ee70c4
Fixed in 51424c14dbdadc8c2ad4abf842265a50f69d78aa, 6a1ae472113762f794682229a0f233f1ee0f69a4, 51e37f9179387b6e3fa64a3d3b4fece1a38b3a02, f532401be9312ecd166f616bb74a65b0b4c150fa, 7f7074a886c4a93e3d12076ce60a510a1ebe400c, 535a200220ca2c83bc8bf54bd2cbe045d6ee70c4
- 4.11
Fixed in 0, 6.1.191, 6.6.160, 6.12.112, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 51424c14dbdadc8c2ad4abf842265a50f69d78aa or 6a1ae472113762f794682229a0f233f1ee0f69a4 or 51e37f9179387b6e3fa64a3d3b4fece1a38b3a02 or f532401be9312ecd166f616bb74a65b0b4c150fa or 7f7074a886c4a93e3d12076ce60a510a1ebe400c or 535a200220ca2c83bc8bf54bd2cbe045d6ee70c4 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.112 or 6.18.50 or 7.2.4 or 7.3 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.