# CVE-2021-47327: iommu/arm-smmu: Fix arm\_smmu\_device refcount leak when arm\_smmu\_rpm\_get fails

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-911
- **Published:** 2024-05-21T14:35:39.816Z
- **Modified:** 2026-06-17T04:17:12.227Z

## Who should check

- Anyone running Linux \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< 3761ae0d0e549f2acdaf11f49df4ed06d256b20f; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< c4007596fbdabc29f858dc2e1990858a146b60b2; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< fbf4daa6f4105e01fbd3868006f65c163365c1e3; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< fe92c058199067ae90cf2a901ddf3c271893557a; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< 1adf30f198c26539a62d761e45af72cde570413d
- Anyone running Linux 5.0

## 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.

## Affected and fixed versions

- Linux: \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< 3761ae0d0e549f2acdaf11f49df4ed06d256b20f; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< c4007596fbdabc29f858dc2e1990858a146b60b2; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< fbf4daa6f4105e01fbd3868006f65c163365c1e3; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< fe92c058199067ae90cf2a901ddf3c271893557a; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< 1adf30f198c26539a62d761e45af72cde570413d (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 1adf30f198c26539a62d761e45af72cde570413d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47327. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47327.md
Affected: Linux >= d4a44f0750bb9bf7c44c22444a482756b2344a79, < 3761ae0d0e549f2acdaf11f49df4ed06d256b20f; >= d4a44f0750bb9bf7c44c22444a482756b2344a79, < c4007596fbdabc29f858dc2e1990858a146b60b2; >= d4a44f0750bb9bf7c44c22444a482756b2344a79, < fbf4daa6f4105e01fbd3868006f65c163365c1e3; >= d4a44f0750bb9bf7c44c224…
Fixed in: Linux 3761ae0d0e549f2acdaf11f49df4ed06d256b20f, Linux 1adf30f198c26539a62d761e45af72cde570413d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47327 being exploited?

There is no confirmed exploitation: CVE-2021-47327 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47327?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47327?

Linux \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< 3761ae0d0e549f2acdaf11f49df4ed06d256b20f; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< c4007596fbdabc29f858dc2e1990858a146b60b2; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< fbf4daa6f4105e01fbd3868006f65c163365c1e3; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< fe92c058199067ae90cf2a901ddf3c271893557a; \>= d4a44f0750bb9bf7c44c22444a482756b2344a79, \< 1adf30f198c26539a62d761e45af72cde570413d; Linux 5.0.

### Is there a fix for CVE-2021-47327?

Yes. Fixed in Linux 3761ae0d0e549f2acdaf11f49df4ed06d256b20f, Linux 1adf30f198c26539a62d761e45af72cde570413d. Upgrade Linux to 1adf30f198c26539a62d761e45af72cde570413d or later.

### How do I check if I'm affected by CVE-2021-47327?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3761ae0d0e549f2acdaf11f49df4ed06d256b20f>
- patch: <https://git.kernel.org/stable/c/c4007596fbdabc29f858dc2e1990858a146b60b2>
- patch: <https://git.kernel.org/stable/c/fbf4daa6f4105e01fbd3868006f65c163365c1e3>
- patch: <https://git.kernel.org/stable/c/fe92c058199067ae90cf2a901ddf3c271893557a>
- patch: <https://git.kernel.org/stable/c/1adf30f198c26539a62d761e45af72cde570413d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47327>

HTML: <https://flawdb.com/CVE-2021-47327> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47327>
