CVE-2021-47327
published high CVSS 3.1 · 7.1iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd4a44f0750bb9bf7c44c22444a482756b2344a79 to < 3761ae0d0e549f2acdaf11f49df4ed06d256b20f · d4a44f0750bb9bf7c44c22444a482756b2344a79 to < c4007596fbdabc29f858dc2e1990858a146b60b2 · d4a44f0750bb9bf7c44c22444a482756b2344a79 to < fbf4daa6f4105e01fbd3868006f65c163365c1e3 · d4a44f0750bb9bf7c44c22444a482756b2344a79 to < fe92c058199067ae90cf2a901ddf3c271893557a · d4a44f0750bb9bf7c44c22444a482756b2344a79 to < 1adf30f198c26539a62d761e45af72cde570413d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.0 (affected) · 0 to < 5.0 (unaffected · semver) · 5.4.134 through 5.4.* (unaffected · semver) · 5.10.52 through 5.10.* (unaffected · semver) · 5.12.19 through 5.12.* (unaffected · semver) · 5.13.4 through 5.13.* (unaffected · semver) · 5.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| linux | — | linux_kernel1da177e4c3f4 to < 3761ae0d0e54 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| linux | — | linux_kernel1da177e4c3f4 to < c4007596fbda · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-004 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-004 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-006 |
Show 16 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| linux | — | linux_kernel1da177e4c3f4 to < fbf4daa6f410 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| linux | — | linux_kernel1da177e4c3f4 to < fe92c0581990 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| linux | — | linux_kernel1da177e4c3f4 to < 1adf30f198c2 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| linux | — | linux_kernel5.4.134 through 5.5 · Other versions: unknown | Unaffected | Not stated | CISA-ADP |
| linux | — | linux_kernel5.10.52 through 5.11 · Other versions: unknown | Unaffected | Not stated | CISA-ADP |
| linux | — | linux_kernel5.12.19 through 5.13 · Other versions: unknown | Unaffected | Not stated | CISA-ADP |
| linux | — | linux_kernel5.13.4 through 5.14 · Other versions: unknown | Unaffected | Not stated | CISA-ADP |
| linux | — | linux_kernel5.14 · Other versions: unknown | Unaffected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-006 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-004 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-006 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-004 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-006 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-004 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.4-2022-006 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d4a44f0750bb9bf7c44c22444a482756b2344a79 to < 3761ae0d0e549f2acdaf11f49df4ed06d256b20f (affected · git)d4a44f0750bb9bf7c44c22444a482756b2344a79 to < c4007596fbdabc29f858dc2e1990858a146b60b2 (affected · git)d4a44f0750bb9bf7c44c22444a482756b2344a79 to < fbf4daa6f4105e01fbd3868006f65c163365c1e3 (affected · git)d4a44f0750bb9bf7c44c22444a482756b2344a79 to < fe92c058199067ae90cf2a901ddf3c271893557a (affected · git)d4a44f0750bb9bf7c44c22444a482756b2344a79 to < 1adf30f198c26539a62d761e45af72cde570413d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.0 (affected)0 to < 5.0 (unaffected · semver)5.4.134 through 5.4.* (unaffected · semver)5.10.52 through 5.10.* (unaffected · semver)5.12.19 through 5.12.* (unaffected · semver)5.13.4 through 5.13.* (unaffected · semver)5.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
| linux | linux_kernel | 1da177e4c3f4 to < 3761ae0d0e54 (affected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 1da177e4c3f4 to < c4007596fbda (affected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 1da177e4c3f4 to < fbf4daa6f410 (affected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 1da177e4c3f4 to < fe92c0581990 (affected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 1da177e4c3f4 to < 1adf30f198c2 (affected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 5.4.134 through 5.5 (unaffected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 5.10.52 through 5.11 (unaffected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 5.12.19 through 5.13 (unaffected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 5.13.4 through 5.14 (unaffected · custom)Default: unknown | CISA-ADP · adp |
| linux | linux_kernel | 5.14 (unaffected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-911 CWE-911 Improper Update of Reference Count
References
5- https://git.kernel.org/stable/c/1adf30f198c26539a62d761e45af72cde570413d
- https://git.kernel.org/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f
- https://git.kernel.org/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2
- https://git.kernel.org/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3
- https://git.kernel.org/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a
Provider assertions
3Linux · cna
iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 59d02ca785d081b903f5b8e7b04601f42a2ba7d8f4fb23fd4038eb36e2926a4a
- Ingested
- 23 Sep 2026, 07:57:11 UTC
- Source record
- Official CVE record