# CVE-2022-50125: ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_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.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-06-18T11:02:53.046Z
- Modified: 2026-06-17T05:22:48.687Z
- Assigned by: Linux

## Description

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

ASoC: cros_ec_codec: Fix refcount leak in cros_ec_codec_platform_probe

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.

(As written by CVE List.)

## Affected

- Linux Linux: from b6bc07d4360dbf766e551f18e43c67fff6784955 before bae95c5aee1f67da6608ceaebfb744d900e5ffbf; from b6bc07d4360dbf766e551f18e43c67fff6784955 before 1065c385325845c88350c765cc6e449f46741984; from b6bc07d4360dbf766e551f18e43c67fff6784955 before b3e64b5562c077218295f2230fb5cf181193cb06; from b6bc07d4360dbf766e551f18e43c67fff6784955 before ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104; from b6bc07d4360dbf766e551f18e43c67fff6784955 before 0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e; 5.5 (not affected: before 5.5; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.5 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/bae95c5aee1f67da6608ceaebfb744d900e5ffbf> (patch)
- <https://git.kernel.org/stable/c/1065c385325845c88350c765cc6e449f46741984> (patch)
- <https://git.kernel.org/stable/c/b3e64b5562c077218295f2230fb5cf181193cb06> (patch)
- <https://git.kernel.org/stable/c/ca6c9244e6c9827a0b2fe8808c5e7b1ee8ab7104> (patch)
- <https://git.kernel.org/stable/c/0a034d93ee929a9ea89f3fa5f1d8492435b9ee6e> (patch)

## Sources

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

---

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