# CVE-2022-50698: ASoC: da7219: Fix an error handling path in da7219_register_dai_clks()

- Severity: not scored yet
- 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.21%, higher than 12% of CVEs (2026-12-02)
- Published: 2025-12-24T10:55:14.740Z
- Modified: 2026-06-17T05:24:01.577Z
- Assigned by: Linux

## Description

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

ASoC: da7219: Fix an error handling path in da7219_register_dai_clks()

If clk_hw_register() fails, the corresponding clk should not be
unregistered.

To handle errors from loops, clean up partial iterations before doing the
goto.  So add a clk_hw_unregister().
Then use a while (--i >= 0) loop in the unwind section.

(As written by CVE List.)

## Affected

- Linux Linux: from 78013a1cf2971684775f6956d5666237ac53a1aa before 4993c1511d66326f1037bc5156b024a6a96d23ef; from 78013a1cf2971684775f6956d5666237ac53a1aa before f5f1f5ee5048cfa7bd07f496b33bd2cfc198a176; from 78013a1cf2971684775f6956d5666237ac53a1aa before ec692f0b51006de1138cd1f82cae625f0d2888d1; from 78013a1cf2971684775f6956d5666237ac53a1aa before cefce8bee0e988f9a005fe40705b98a25cfb7f9d; from 78013a1cf2971684775f6956d5666237ac53a1aa before abb4e4349afe7eecdb0499582f1c777031e3a7c8; 5.10 (not affected: before 5.10; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/4993c1511d66326f1037bc5156b024a6a96d23ef>
- <https://git.kernel.org/stable/c/f5f1f5ee5048cfa7bd07f496b33bd2cfc198a176>
- <https://git.kernel.org/stable/c/ec692f0b51006de1138cd1f82cae625f0d2888d1>
- <https://git.kernel.org/stable/c/cefce8bee0e988f9a005fe40705b98a25cfb7f9d>
- <https://git.kernel.org/stable/c/abb4e4349afe7eecdb0499582f1c777031e3a7c8>

## Sources

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

---

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