# CVE-2021-47327: iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:39.816Z
- Modified: 2026-06-17T04:17:12.227Z
- Weaknesses: CWE-911
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails

arm_smmu_rpm_get() invokes pm_runtime_get_sync(), which increases the
refcount of the "smmu" even though the return value is less than 0.

The reference counting issue happens in some error handling paths of
arm_smmu_rpm_get() in its caller functions. When arm_smmu_rpm_get()
fails, the caller functions forget to decrease the refcount of "smmu"
increased by arm_smmu_rpm_get(), causing a refcount leak.

Fix this issue by calling pm_runtime_resume_and_get() instead of
pm_runtime_get_sync() in arm_smmu_rpm_get(), which can keep the refcount
balanced in case of failure.

(As written by CVE List.)

## Affected

- Linux Linux: from d4a44f0750bb9bf7c44c22444a482756b2344a79 before 3761ae0d0e549f2acdaf11f49df4ed06d256b20f; from d4a44f0750bb9bf7c44c22444a482756b2344a79 before c4007596fbdabc29f858dc2e1990858a146b60b2; from d4a44f0750bb9bf7c44c22444a482756b2344a79 before fbf4daa6f4105e01fbd3868006f65c163365c1e3; from d4a44f0750bb9bf7c44c22444a482756b2344a79 before fe92c058199067ae90cf2a901ddf3c271893557a; from d4a44f0750bb9bf7c44c22444a482756b2344a79 before 1adf30f198c26539a62d761e45af72cde570413d; 5.0 (not affected: before 5.0; from 5.4.134 up to 5.4.*; from 5.10.52 up to 5.10.*; from 5.12.19 up to 5.12.*; from 5.13.4 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: from 1da177e4c3f4 before 3761ae0d0e54; from 1da177e4c3f4 before c4007596fbda; from 1da177e4c3f4 before fbf4daa6f410; from 1da177e4c3f4 before fe92c0581990; from 1da177e4c3f4 before 1adf30f198c2; before 5.4.134; from 5.5 before 5.10.52; from 5.11 before 5.12.19; from 5.13 before 5.13.4 (not affected: from 5.4.134 up to 5.5; from 5.10.52 up to 5.11; from 5.12.19 up to 5.13; from 5.13.4 up to 5.14; 5.14)

## References

- <https://git.kernel.org/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f> (patch)
- <https://git.kernel.org/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2> (patch)
- <https://git.kernel.org/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3> (patch)
- <https://git.kernel.org/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a> (patch)
- <https://git.kernel.org/stable/c/1adf30f198c26539a62d761e45af72cde570413d> (patch)

## Sources

- CVE List: [CVE-2021-47327](https://www.cve.org/CVERecord?id=CVE-2021-47327), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47327](https://nvd.nist.gov/vuln/detail/CVE-2021-47327), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47327 · Whole record: https://cve.day/CVE-2021-47327.json · Rebuilt by cve.day 2026-11-25T22:58:08.798Z
