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 E985D28C2B3 for ; Wed, 18 Jun 2025 11:11:15 +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=1750245076; cv=none; b=KPPK9j8zXhglBv5SxBDWiyOMHEg4+TvWq7kPmvHHqFYlxi2NAwLTlL4KOBKeKEWWRWrz9+iRjVy6UNy5WkWJVoF4LIzQBOhgyeX+T7tG/LhqBuQjZKjl7662/Z2AJ7AFtJjBLtk+bHZ2equu1FL1MYh2Y7gR2NXCNNH4Ld6+0Rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245076; c=relaxed/simple; bh=g2MQUXuT6r9ha9IIx1VgfDi7G6oS4szWK7ExnusU2fU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bO6rYHlb+OVnSHCk4lFIyPOp00xCdgwqcrE+xnABrYbGAkYm+XFYWZjFKqeifywAtLmmOR+xe/ky81baxvXCTAxW17fD7XENX/SpowJ2ynZo1YujcJCD7zWLspjXDQFjC7ElkH6kQdzoZIz2Aw5wxXZChz4tmqgmjLLAU3UVrAc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LzPNjPpm; 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="LzPNjPpm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 756A5C4CEE7; Wed, 18 Jun 2025 11:11:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245075; bh=g2MQUXuT6r9ha9IIx1VgfDi7G6oS4szWK7ExnusU2fU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LzPNjPpmiFO9SnY6nbCY6S5J5m6zss+OxUbtrOxSec2h4jziPlWb0GnwaAwPgNr9e jtkcKxURwdHYkjk06JpwLmZtps8mhQW0n+Ln7iPjXLxgujdvqDxMBUKDAzfByoT/wu oACeGNzdtr7aJCW+i1kB5EgLIKly+fVC4rupkJFo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50123: ASoC: mediatek: mt8173: Fix refcount leak in mt8173_rt5650_rt5676_dev_probe Date: Wed, 18 Jun 2025 13:03:08 +0200 Message-ID: <2025061812-CVE-2022-50123-49ce@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3344; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w8Kk/gNbIJZH/z/IkhFWnr0+59whgkcQQzklUhRZl3M=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcypqJn16O/9QfLfl5Dv/04s4alzuyuw84L7h6ZxH+ ky9SZc2dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEeNYwzC9a9p0rSOCOwq/j k4qO2XE2cBZ/PMSwYFnrGYtpR5dsUn3Km924Nc46M9pjLQA= 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: mediatek: mt8173: Fix refcount leak in mt8173_rt5650_rt5676_dev_probe of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Fix missing of_node_put() in error paths. The Linux kernel CVE team has assigned CVE-2022-50123 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 4.14.291 with commit aa668f8e93199cda8fa1612eb49ff70f5ecd8c92 Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 4.19.256 with commit fab5eb31819a2693b0c3d6f3df6a0d193af9a089 Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 5.4.211 with commit d6d41f04640db0f946e2c3f7963bb2774afc7a0d Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 5.10.137 with commit aa1214ece37944e4dbbb5cfb1d02bf37e4d89b02 Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 5.15.61 with commit 540c7b7385fb110740703888b4b2bbfa06c7f79c Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 5.18.18 with commit 769399bce8825e1dcc5050dab78e15ab578baf4f Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 5.19.2 with commit 58567ed2878f70e0ded242cb529fb4a7618ea9f8 Issue introduced in 4.2 with commit 94319ba10ecabc8f28129566d1f5793e3e7a0a79 and fixed in 6.0 with commit ae4f11c1ed2d67192fdf3d89db719ee439827c11 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-50123 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/mediatek/mt8173/mt8173-rt5650-rt5676.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/aa668f8e93199cda8fa1612eb49ff70f5ecd8c92 https://git.kernel.org/stable/c/fab5eb31819a2693b0c3d6f3df6a0d193af9a089 https://git.kernel.org/stable/c/d6d41f04640db0f946e2c3f7963bb2774afc7a0d https://git.kernel.org/stable/c/aa1214ece37944e4dbbb5cfb1d02bf37e4d89b02 https://git.kernel.org/stable/c/540c7b7385fb110740703888b4b2bbfa06c7f79c https://git.kernel.org/stable/c/769399bce8825e1dcc5050dab78e15ab578baf4f https://git.kernel.org/stable/c/58567ed2878f70e0ded242cb529fb4a7618ea9f8 https://git.kernel.org/stable/c/ae4f11c1ed2d67192fdf3d89db719ee439827c11