ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe
Published Feb 26, 2025
5.5
MEDIUMCVSS 3.1
EPSS 0.22%
Description
The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done.
This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. Fix this by calling of_node_put() in error handling too.
Affected products
-
Affected
- ≥ , <
- ≥ , <
-
Affected
- 5.2
Unaffected
- ≥ 0, < 5.2
- ≥ 5.17.2, ≤ 5.17.*
- 5.18
- ≥ 5.2 · < 5.17.2
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
No CWE recorded.
References (8)
- https://access.redhat.com/security/cve/CVE-2022-49161 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2347977 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-55064 Advisory
- https://git.kernel.org/stable/c/28a265a1ee11febeec5ea73a804f30dcec3181ca Patch
- https://git.kernel.org/stable/c/9b9f6227e8d0c7c46b6d9d7b8a5c4e0536049fcf Patch
- https://lore.kernel.org/linux-cve-announce/2025022611-CVE-2022-49161-ff61@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-49161
- https://www.cve.org/CVERecord?id=CVE-2022-49161
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
No data
GitHub
No data