{"id":"CVE-2021-47327","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails\n\narm_smmu_rpm_get() invokes pm_runtime_get_sync(), which increases the\nrefcount of the \"smmu\" even though the return value is less than 0.\n\nThe reference counting issue happens in some error handling paths of\narm_smmu_rpm_get() in its caller functions. When arm_smmu_rpm_get()\nfails, the caller functions forget to decrease the refcount of \"smmu\"\nincreased by arm_smmu_rpm_get(), causing a refcount leak.\n\nFix this issue by calling pm_runtime_resume_and_get() instead of\npm_runtime_get_sync() in arm_smmu_rpm_get(), which can keep the refcount\nbalanced in case of failure.","modified":"2026-03-14T14:59:07.427144Z","published":"2024-05-21T15:15:19.757Z","references":[{"type":"FIX","url":"https://git.kernel.org/stable/c/1adf30f198c26539a62d761e45af72cde570413d"},{"type":"FIX","url":"https://git.kernel.org/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f"},{"type":"FIX","url":"https://git.kernel.org/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2"},{"type":"FIX","url":"https://git.kernel.org/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3"},{"type":"FIX","url":"https://git.kernel.org/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a"}],"affected":[{"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"5.4.134"}]},{"events":[{"introduced":"5.5"},{"fixed":"5.10.52"}]},{"events":[{"introduced":"5.11"},{"fixed":"5.12.19"}]},{"events":[{"introduced":"5.13"},{"fixed":"5.13.4"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47327.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}