iommu/arm-smmu: Fix arm_smmu_device refcount leak in address translation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iommu/arm-smmu: Fix arm_smmu_device refcount leak in address translation
The reference counting issue happens in several exception handling paths of arm_smmu_iova_to_phys_hard(). When those error scenarios occur, the function forgets to decrease the refcount of "smmu" increased by arm_smmu_rpm_get(), causing a refcount leak.
Fix this issue by jumping to "out" label when those error scenarios occur.
From the CVE record · Linux
The Linux kernel’s arm-smmu address translation function leaks a device reference when certain error paths occur. The input does not describe how an attacker could trigger those errors or specify access or user-interaction requirements.
Engineers running the Linux kernel with arm-smmu should check their installations; affected versions are not specified.