ASoC: da7219: Fix an error handling path in da7219_register_dai_clks()
Published Dec 24, 2025
3.3
LOWCVSS 3.1
EPSS 0.20%
Description
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.
Affected products
-
Affected
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
-
Affected
- 5.10
Unaffected
- ≥ 0, < 5.10
- ≥ 5.10.150, ≤ 5.10.*
- ≥ 5.15.75, ≤ 5.15.*
- ≥ 5.19.17, ≤ 5.19.*
- ≥ 6.0.3, ≤ 6.0.*
- 6.1
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
No data.
No data.
Red Hat Enterprise Linux 8
kernel-0:4.18.0-477.10.1.el8_8
Fixed · RHSA-2023:2951
Red Hat Enterprise Linux 9
kernel-0:5.14.0-284.11.1.el9_2
Fixed · RHSA-2023:2458
Red Hat Enterprise Linux 9
kernel-0:5.14.0-284.11.1.el9_2
Fixed · RHSA-2023:2458
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-rt
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-477.10.1.el8_8 | Fixed | RHSA-2023:2951 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-284.11.1.el9_2 | Fixed | RHSA-2023:2458 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-284.11.1.el9_2 | Fixed | RHSA-2023:2458 |
| 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-rt | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This is an error handling path bug that only manifests during driver probe failures for the da7219 audio codec. The issue requires specific hardware (Dialog Semiconductor DA7219) and a failure condition during clock registration. Normal operation is unaffected, and the practical exploit scenario is very limited.
No CWE recorded.
References (11)
- https://access.redhat.com/security/cve/CVE-2022-50698 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2424979 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-205184 Advisory
- https://git.kernel.org/stable/c/4993c1511d66326f1037bc5156b024a6a96d23ef
- https://git.kernel.org/stable/c/abb4e4349afe7eecdb0499582f1c777031e3a7c8
- https://git.kernel.org/stable/c/cefce8bee0e988f9a005fe40705b98a25cfb7f9d
- https://git.kernel.org/stable/c/ec692f0b51006de1138cd1f82cae625f0d2888d1
- https://git.kernel.org/stable/c/f5f1f5ee5048cfa7bd07f496b33bd2cfc198a176
- https://lore.kernel.org/linux-cve-announce/2025122417-CVE-2022-50698-0d67@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-50698
- https://www.cve.org/CVERecord?id=CVE-2022-50698
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
No data
GitHub
No data