{"id":"CVE-2021-47327","published":"2024-05-21T14:35:39Z","modified":"2026-05-11T13:52:20Z","title":"iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00255,"percentile":0.17442,"provenance":"source"},"cwes":[{"id":"CWE-911","name":"Improper Update of Reference Count"}],"references":[{"url":"https://git.kernel.org/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f","tags":[]},{"url":"https://git.kernel.org/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2","tags":[]},{"url":"https://git.kernel.org/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3","tags":[]},{"url":"https://git.kernel.org/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a","tags":[]},{"url":"https://git.kernel.org/stable/c/1adf30f198c26539a62d761e45af72cde570413d","tags":[]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.49},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d4a44f0750bb9bf7c44c22444a482756b2344a79, < 3761ae0d0e549f2acdaf11f49df4ed06d256b20f",">= d4a44f0750bb9bf7c44c22444a482756b2344a79, < c4007596fbdabc29f858dc2e1990858a146b60b2",">= d4a44f0750bb9bf7c44c22444a482756b2344a79, < fbf4daa6f4105e01fbd3868006f65c163365c1e3",">= d4a44f0750bb9bf7c44c22444a482756b2344a79, < fe92c058199067ae90cf2a901ddf3c271893557a",">= d4a44f0750bb9bf7c44c22444a482756b2344a79, < 1adf30f198c26539a62d761e45af72cde570413d"]},{"vendor":"Linux","product":"Linux","versions":["5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-06T15:58:26.406963Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34332","exploited":false,"provenance":"source"}}