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

Not scored Published Updated

A flaw in the Linux kernel's DA7219 audio driver error handling path can lead to resource mismanagement, potentially causing a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-50698?

CVE-2022-50698 is a vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-50698?

How do I fix CVE-2022-50698?

Apply the vendor's patch.

Is CVE-2022-50698 being exploited?

There is no known exploitation of CVE-2022-50698 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-50698, GHSA-2rxh-4vr2-w87x, UBUNTU-CVE-2022-50698.

Is CVE-2022-50698 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free