CVE-2021-47327

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47327
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47327.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47327
Downstream
Published
2024-05-21T15:15:19Z
Modified
2025-08-09T19:01:26Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

iommu/arm-smmu: Fix armsmmudevice refcount leak when armsmmurpm_get fails

armsmmurpmget() invokes pmruntimegetsync(), 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 armsmmurpmget() in its caller functions. When armsmmurpmget() fails, the caller functions forget to decrease the refcount of "smmu" increased by armsmmurpm_get(), causing a refcount leak.

Fix this issue by calling pmruntimeresumeandget() instead of pmruntimegetsync() in armsmmurpmget(), which can keep the refcount balanced in case of failure.

References

Affected packages