# CVE-2022-49161: ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-02)
- Published: 2025-02-26T01:55:23.056Z
- Modified: 2026-06-17T05:17:14.973Z
- Assigned by: Linux

## Description

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

ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 11c0269017b212fd47c593307d2dc3eb9713b2d0 before 9b9f6227e8d0c7c46b6d9d7b8a5c4e0536049fcf; from 11c0269017b212fd47c593307d2dc3eb9713b2d0 before 28a265a1ee11febeec5ea73a804f30dcec3181ca; 5.2 (not affected: before 5.2; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.2 before 5.17.2

## References

- <https://git.kernel.org/stable/c/9b9f6227e8d0c7c46b6d9d7b8a5c4e0536049fcf> (patch)
- <https://git.kernel.org/stable/c/28a265a1ee11febeec5ea73a804f30dcec3181ca> (patch)

## Sources

- CVE List: [CVE-2022-49161](https://www.cve.org/CVERecord?id=CVE-2022-49161), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49161](https://nvd.nist.gov/vuln/detail/CVE-2022-49161), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49161 · Whole record: https://cve.day/CVE-2022-49161.json · Rebuilt by cve.day 2026-11-25T22:58:20.237Z
