CVE-2021-47327 json
iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails
published 2024-05-21 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34332
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 17%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.4.134, 5.10.52, 5.12.19, 5.13.4, 5.14
- linux linux_kernel 1adf30f198c2, 3761ae0d0e54, c4007596fbda, fbf4daa6f410, fe92c0581990
- linux Debian 14, Debian 13, Debian 12 5.14.6-1
debian advisories DEBIAN-CVE-2021-47327
- linux Ubuntu 20.04 LTS 5.4.0-88.99
- linux-aws Ubuntu 20.04 LTS 5.4.0-1057.60
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1053.57
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1005.6
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1047.49
- linux-azure Ubuntu 20.04 LTS 5.4.0-1059.62
- linux-gkeop Ubuntu 20.04 LTS 5.4.0-1024.25
- linux-raspi Ubuntu 20.04 LTS 5.4.0-1044.48
ubuntu advisories UBUNTU-CVE-2021-47327
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f commit
- git.kernel.org/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2 commit
- git.kernel.org/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3 commit
- git.kernel.org/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a commit
- git.kernel.org/stable/c/1adf30f198c26539a62d761e45af72cde570413d commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-47327 updated cvss 5.1
kernel: iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-selftests-internalaffected: no fix available
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 17% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
- linux linux_kernel
Classification
- Weakness
-
- CWE-911 Improper Update of Reference Count
- Technology feeds
References
-
git.kernel.org
/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f
patch
-
git.kernel.org
/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2
patch
-
git.kernel.org
/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3
patch
-
git.kernel.org
/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a
patch
-
git.kernel.org
/stable/c/1adf30f198c26539a62d761e45af72cde570413d
patch
Sources
- CVE List CVE-2021-47327
- NVD CVE-2021-47327
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.