What’s Vulnerable › Vulnerabilities

CVE-2022-49323: iommu/arm-smmu: fix possible null-ptr-deref in arm_smmu_device_probe()

Description

In the Linux kernel, the following vulnerability has been resolved: iommu/arm-smmu: fix possible null-ptr-deref in arm_smmu_device_probe() It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.122, 5.15.47, 5.17.15, 5.18.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49323 or the next vulnerability affects your stack