# CVE-2022-49246: ASoC: atmel: Fix error handling in snd_proto_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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T01:56:05.740Z
- Modified: 2026-06-17T05:17:30.130Z
- Assigned by: Linux

## Description

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

ASoC: atmel: Fix error handling in snd_proto_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 a45f8853a5f95e3760dfbd7ba09d3d597d247040 before f32ac9bf5e3f594ef9bfedb410aebc98cf784e69; from a45f8853a5f95e3760dfbd7ba09d3d597d247040 before 0f517480d5888cd54487c5662ce4da95b30ad798; from a45f8853a5f95e3760dfbd7ba09d3d597d247040 before 8fa969cd8485031294f91fc7184399000cae6355; from a45f8853a5f95e3760dfbd7ba09d3d597d247040 before b0bfaf0544d08d093d6211d7ef8816fb0b5b6c75; 4.20 (not affected: before 4.20; from 5.15.33 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 4.20 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## References

- <https://git.kernel.org/stable/c/f32ac9bf5e3f594ef9bfedb410aebc98cf784e69> (patch)
- <https://git.kernel.org/stable/c/0f517480d5888cd54487c5662ce4da95b30ad798> (patch)
- <https://git.kernel.org/stable/c/8fa969cd8485031294f91fc7184399000cae6355> (patch)
- <https://git.kernel.org/stable/c/b0bfaf0544d08d093d6211d7ef8816fb0b5b6c75> (patch)

## Sources

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

---

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