Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC9DE314D21 for ; Wed, 24 Dec 2025 10:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573806; cv=none; b=HHK4TCT0p5EO1pXsJNjzuo6xGBnL5Xjf/+D4plsQUh+XdhDsMj/wQNUg+3KNu6J1Qpm4C3BBee/xOKwdAdamHnD92pKG903+BKTwP6V8KRKIVTbLgaeovn//sESU9tLRBsc8NuyDnweFHz76/AyD1XoHpM5jnxWKAUp0cQ6zTbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573806; c=relaxed/simple; bh=CppYllM6eW3btjRW7gofoLx7+/OqVd3ZCzEJArvcMvs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W+Sh8Cmt3yE/ng6TJMyPGvl77N/ojUn/188B02r/kGiPKnV29jUFVFNQBoU4/pLSvRivPYQzocuEVPiJBxQ20+tTkEeeGVkSHFHoUUabvVJf8Y0vTkVcHKgAyEIHi5/qDckcmAMY0gffuKLK8WQTdxJYTEqK/JCXJ3sR0E7SD1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pnc1+vYc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pnc1+vYc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F6F2C4CEFB; Wed, 24 Dec 2025 10:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573805; bh=CppYllM6eW3btjRW7gofoLx7+/OqVd3ZCzEJArvcMvs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=pnc1+vYcdkQ1xYsaI7pL76+jJybXg/oNwAbu+agv2G2RS8BlAmP2Kv3eNVnL2zDi4 q45pY4ojPkSHAtX5ZuTacW/0vOvguGSYmiDTtE6X5t5YyDTLWCZY+sohMLVHT5pH5s gForWf8eK3zagKAZVJuBH4FrijDfXjQTykdKEEl8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50698: ASoC: da7219: Fix an error handling path in da7219_register_dai_clks() Date: Wed, 24 Dec 2025 11:56:15 +0100 Message-ID: <2025122417-CVE-2022-50698-0d67@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2715; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zbm30D+77LnRxx2wF4H6qHMDNh/IipeDF0qhmX6/z3I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnexy5OrHXT6f/8uNU2Ntb+VM6vlabdAZ45B67f1o299 +Dhiny/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjInASGBVNcjubydFh+mdO9 r3cZl1TmrSNH9zHMZr92knlqo7KB7KO1Bvv8psvsvCrIDAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2022-50698 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 78013a1cf2971684775f6956d5666237ac53a1aa and fixed in 5.10.150 with commit 4993c1511d66326f1037bc5156b024a6a96d23ef Issue introduced in 5.10 with commit 78013a1cf2971684775f6956d5666237ac53a1aa and fixed in 5.15.75 with commit f5f1f5ee5048cfa7bd07f496b33bd2cfc198a176 Issue introduced in 5.10 with commit 78013a1cf2971684775f6956d5666237ac53a1aa and fixed in 5.19.17 with commit ec692f0b51006de1138cd1f82cae625f0d2888d1 Issue introduced in 5.10 with commit 78013a1cf2971684775f6956d5666237ac53a1aa and fixed in 6.0.3 with commit cefce8bee0e988f9a005fe40705b98a25cfb7f9d Issue introduced in 5.10 with commit 78013a1cf2971684775f6956d5666237ac53a1aa and fixed in 6.1 with commit abb4e4349afe7eecdb0499582f1c777031e3a7c8 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50698 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: sound/soc/codecs/da7219.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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