In the Linux kernel, the following vulnerability has been resolved:
ASoC: da7219: Fix an error handling path in da7219registerdai_clks()
If clkhwregister() fails, the corresponding clk should not be unregistered.
To handle errors from loops, clean up partial iterations before doing the goto. So add a clkhwunregister(). Then use a while (--i >= 0) loop in the unwind section.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50698.json"
}