CVE-2021-47327
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
21/05/2024
Last modified:
02/04/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
iommu/arm-smmu: Fix arm_smmu_device refcount leak when arm_smmu_rpm_get fails<br />
<br />
arm_smmu_rpm_get() invokes pm_runtime_get_sync(), which increases the<br />
refcount of the "smmu" even though the return value is less than 0.<br />
<br />
The reference counting issue happens in some error handling paths of<br />
arm_smmu_rpm_get() in its caller functions. When arm_smmu_rpm_get()<br />
fails, the caller functions forget to decrease the refcount of "smmu"<br />
increased by arm_smmu_rpm_get(), causing a refcount leak.<br />
<br />
Fix this issue by calling pm_runtime_resume_and_get() instead of<br />
pm_runtime_get_sync() in arm_smmu_rpm_get(), which can keep the refcount<br />
balanced in case of failure.
Impact
Base Score 3.x
7.10
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.4.134 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.5 (including) | 5.10.52 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.12.19 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.13 (including) | 5.13.4 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- 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
- 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



