Bug 1225043 (CVE-2021-47325) - VUL-0: CVE-2021-47325: kernel: iommu/arm-smmu: Fix arm_smmu_device refcount leak in address translation
Summary: VUL-0: CVE-2021-47325: kernel: iommu/arm-smmu: Fix arm_smmu_device refcount l...
Status: NEW
Alias: CVE-2021-47325
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Karasulli
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/406961/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47325:3.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 15:16 UTC by SMASH SMASH
Modified: 2024-05-27 05:53 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-22 15:16:52 UTC
In the Linux kernel, the following vulnerability has been resolved:

iommu/arm-smmu: Fix arm_smmu_device refcount leak in address translation

The reference counting issue happens in several exception handling paths
of arm_smmu_iova_to_phys_hard(). When those error scenarios occur, the
function forgets to decrease the refcount of "smmu" increased by
arm_smmu_rpm_get(), causing a refcount leak.

Fix this issue by jumping to "out" label when those error scenarios
occur.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47325
https://www.cve.org/CVERecord?id=CVE-2021-47325
https://git.kernel.org/stable/c/0f0c5ea09139777d90729d408b807021f2ea6492
https://git.kernel.org/stable/c/43d1aaa1965f9b58035196dac49b1e1e6c9c25eb
https://git.kernel.org/stable/c/5f9741a9a91f25c89e04b408cd61e3ab050ce24b
https://git.kernel.org/stable/c/7c8f176d6a3fa18aa0f8875da6f7c672ed2a8554
https://git.kernel.org/stable/c/b11220803ad14a2a880cc06d8e01fe2548cc85b0
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2021/CVE-2021-47325.mbox