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 0C49128C5AA for ; Wed, 18 Jun 2025 11:11:13 +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=1750245073; cv=none; b=dP8/nQZGusZ5yJPPArA38u9TF+gqKKqh0uimEjnKsWNOhAZ4M12+AC0LmhDGr5hJaxWBPgr3Cri1TRXbLJSOtHYoqvyU39b4Pixi/Z+SuojbamIsbhBNSKOutcUeW6UXygq6DNj2jKcnrQw0kiKfmVFrJxH6GilQsyRFPKw75MM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245073; c=relaxed/simple; bh=5gHTK4IPNbNshTuzNRZybbK97QidpYr1rQDsnKroD2I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NL5UDeGqY1G9D8dMNIX2R1QQrBHM66vgWv962M9KdDPDxi/UOOFX0ic0t2MWWmsW/kqu6XuYxBYjuTMYHXoWsU1Yw30wrNcKvz/HAn6mHPzsWo1XCVqaN4guIQtJP023VsUzSu7L6KUlOj0sj341cxtUUl8ia/tT6/190gnH6LY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yQFjGBmS; 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="yQFjGBmS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BADAC4CEE7; Wed, 18 Jun 2025 11:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245072; bh=5gHTK4IPNbNshTuzNRZybbK97QidpYr1rQDsnKroD2I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yQFjGBmS4sr3oFVkxo2l6rgkq4wjb8KEV9/hdcPX5HQMPnnoPBpz1q09TREHst683 uu+E/Ldhsmc9QffRvitR10YifAYV4ZP6cl3fbJSVaam6Z8ZH/yt02cez3NzeQkXKPd mLCHWILmnz6j40rt0U7xvpkpmy5RpCLWJV3qmyEY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50122: ASoC: mediatek: mt8173-rt5650: Fix refcount leak in mt8173_rt5650_dev_probe Date: Wed, 18 Jun 2025 13:03:07 +0200 Message-ID: <2025061811-CVE-2022-50122-c494@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=3334; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/XLSzijCp0kgESwJ/u9ieRtWv4Nja1I4wJEMJCaqaWk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc8ot9rWy/w1g2bbOTaP6UNAXv9n9oZsDru471/OGn 7mBp/pJRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkqwnDPF1lOW/t2CknJtQ8 O+6Ud+D8FNncAwwL9k7W6TvZKNtuvveuu8KKuNdFZ/KYAA== 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-rt5650: Fix refcount leak in mt8173_rt5650_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 refcount leak in some error paths. The Linux kernel CVE team has assigned CVE-2022-50122 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 4.14.291 with commit 06ace427953f5036b64aed658f0055f65d76fd27 Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 4.19.256 with commit e024a24fb264523149658c10c76bb363b3d0004d Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 5.4.211 with commit 79f566907d27abbd7600cebe51def5081d5796b5 Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 5.10.137 with commit 403d46971936f9f704b91cecffe66e44aa39e915 Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 5.15.61 with commit 994f2edeeb2114bb22b62741cb8fb030fc7e5441 Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 5.18.18 with commit e38e4952ac7a316c9002af30980d6aa850214474 Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 5.19.2 with commit 5ec83aa7a9e5bcca80ccd49978916feb4e0ffc07 Issue introduced in 4.6 with commit 0f83f9296d5c91d08cf46cf1ba8a17fb870dedf0 and fixed in 6.0 with commit efe2178d1a32492f99e7f1f2568eea5c88a85729 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-50122 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.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/06ace427953f5036b64aed658f0055f65d76fd27 https://git.kernel.org/stable/c/e024a24fb264523149658c10c76bb363b3d0004d https://git.kernel.org/stable/c/79f566907d27abbd7600cebe51def5081d5796b5 https://git.kernel.org/stable/c/403d46971936f9f704b91cecffe66e44aa39e915 https://git.kernel.org/stable/c/994f2edeeb2114bb22b62741cb8fb030fc7e5441 https://git.kernel.org/stable/c/e38e4952ac7a316c9002af30980d6aa850214474 https://git.kernel.org/stable/c/5ec83aa7a9e5bcca80ccd49978916feb4e0ffc07 https://git.kernel.org/stable/c/efe2178d1a32492f99e7f1f2568eea5c88a85729