Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
42df43b36163ed7d0ab13992e411093252903273 to < 6a1ae472113762f794682229a0f233f1ee0f69a4affected42df43b36163ed7d0ab13992e411093252903273 to < 51e37f9179387b6e3fa64a3d3b4fece1a38b3a02affected42df43b36163ed7d0ab13992e411093252903273 to < f532401be9312ecd166f616bb74a65b0b4c150faaffected42df43b36163ed7d0ab13992e411093252903273 to < 7f7074a886c4a93e3d12076ce60a510a1ebe400caffected42df43b36163ed7d0ab13992e411093252903273 to < 535a200220ca2c83bc8bf54bd2cbe045d6ee70c4affected
Linux Linux
Default version status: affected
4.11affected0 to < 4.11unaffected6.6.160 to ≤ 6.6.*unaffected6.12.112 to ≤ 6.12.*unaffected6.18.50 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/6a1ae472113762f794682229a0f233f1ee0f69a4 ↗
- https://git.kernel.org/stable/c/51e37f9179387b6e3fa64a3d3b4fece1a38b3a02 ↗
- https://git.kernel.org/stable/c/f532401be9312ecd166f616bb74a65b0b4c150fa ↗
- https://git.kernel.org/stable/c/7f7074a886c4a93e3d12076ce60a510a1ebe400c ↗
- https://git.kernel.org/stable/c/535a200220ca2c83bc8bf54bd2cbe045d6ee70c4 ↗