CVE-2022-48894 iommu/arm-smmu-v3: Don't unregister on shutdown
A null pointer dereference in the Linux kernel ARM SMMUv3 driver during shutdown can cause a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-48894?
CVE-2022-48894 is a medium-severity vulnerability in Linux kernel, published on 21 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
iommu/arm-smmu-v3: Don't unregister on shutdown
Similar to SMMUv2, this driver calls iommu_device_unregister() from the shutdown path, which removes the IOMMU groups with no coordination whatsoever with their users - shutdown methods are optional in device drivers. This can lead to NULL pointer dereferences in those drivers' DMA API calls, or worse.
Instead of calling the full arm_smmu_device_remove() from arm_smmu_device_shutdown(), let's pick only the relevant function call - arm_smmu_device_disable() - more or less the reverse of arm_smmu_device_reset() - and call just that from the shutdown path.
Weakness: CWE-476
Which versions are affected by CVE-2022-48894?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-48894?
Apply the vendor's patch.
Is CVE-2022-48894 being exploited?
There is no known exploitation of CVE-2022-48894 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-48894, GHSA-mmx6-88qc-4g5c, UBUNTU-CVE-2022-48894.