{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47327","id":"CVE-2021-47327","title":"iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails","description":"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. ","descriptionLong":"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.","published":"2024-05-21T14:35:39.816Z","updated":"2026-06-17T04:17:12.227Z","reserved":"2024-05-21T14:28:16.975Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d4a44f0750bb9bf7c44c22444a482756b2344a79","lessThan":"3761ae0d0e549f2acdaf11f49df4ed06d256b20f","status":"affected","versionType":"git"},{"version":"d4a44f0750bb9bf7c44c22444a482756b2344a79","lessThan":"c4007596fbdabc29f858dc2e1990858a146b60b2","status":"affected","versionType":"git"},{"version":"d4a44f0750bb9bf7c44c22444a482756b2344a79","lessThan":"fbf4daa6f4105e01fbd3868006f65c163365c1e3","status":"affected","versionType":"git"},{"version":"d4a44f0750bb9bf7c44c22444a482756b2344a79","lessThan":"fe92c058199067ae90cf2a901ddf3c271893557a","status":"affected","versionType":"git"},{"version":"d4a44f0750bb9bf7c44c22444a482756b2344a79","lessThan":"1adf30f198c26539a62d761e45af72cde570413d","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","lessThan":"5.0","status":"unaffected","versionType":"semver"},{"version":"5.4.134","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.52","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.12.19","lessThanOrEqual":"5.12.*","status":"unaffected","versionType":"semver"},{"version":"5.13.4","lessThanOrEqual":"5.13.*","status":"unaffected","versionType":"semver"},{"version":"5.14","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-911"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/1adf30f198c26539a62d761e45af72cde570413d","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00255,"epssPercentile":0.17322,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47327","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47327","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47327","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-47327","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}