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
Related
Published
2024-05-21T15:15:19Z
Modified
2024-09-18T03:17:25.730923Z
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

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.70-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}