CVE-2021-47327

HIGH

Linux Kernel - Use-After-Free via arm_smmu_rpm_get Refcount Leak

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.1
EPSS 0.0026
EPSS Percentile 17.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-911
Status published
Products (13)
Linux/Linux < 5.0
Linux/Linux 5.0
Linux/Linux 5.10.52 - 5.10.*
Linux/Linux 5.12.19 - 5.12.*
Linux/Linux 5.13.4 - 5.13.*
Linux/Linux 5.14
Linux/Linux 5.4.134 - 5.4.*
Linux/Linux d4a44f0750bb9bf7c44c22444a482756b2344a79 - 1adf30f198c26539a62d761e45af72cde570413d
Linux/Linux d4a44f0750bb9bf7c44c22444a482756b2344a79 - 3761ae0d0e549f2acdaf11f49df4ed06d256b20f
Linux/Linux d4a44f0750bb9bf7c44c22444a482756b2344a79 - c4007596fbdabc29f858dc2e1990858a146b60b2
... and 3 more
Published May 21, 2024
Tracked Since Feb 18, 2026