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 81A4128B7C7 for ; Wed, 18 Jun 2025 11:11:21 +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=1750245081; cv=none; b=K3D9jXmJgtzy2C7y/19yOvl8eZe2Siawqk//oYbfyulj5zPvC+EoGm9s+tYVPux2kMFMLMP7hAL5HooJA8XjF6cUIlah/SRjNInbK6f+i4gX5KxbH/5sH7ac6eFtbgFWKJCudM5c6Pc9Aj45WUii2jNsKq6y46JxGhhorT4bOas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245081; c=relaxed/simple; bh=jOBiyCrcQ9hpoGpC5FHsopHEivgoc+wbEruRBDrs/BQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=btX6RIeTuAjo3U1NVFZnbcJbczr8+foF7ECkP20Dm3oNXNhiZ61NWg1SBTzVgGqTS1hDPOq0pI5GHV9kOYZZInOwLrl6/UrJxCbR5sqy/cA60Vk+O7QUcNM4c5lOTQPl43Zux8tqrSclO/Ri6DmudO/ruthid071Ccgn+4nVSmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XPFVgDyI; 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="XPFVgDyI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90852C4CEED; Wed, 18 Jun 2025 11:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245081; bh=jOBiyCrcQ9hpoGpC5FHsopHEivgoc+wbEruRBDrs/BQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XPFVgDyIGW6ze2kSSAd6ZPLr9qz5pqldtAd+1uDX9+1JJHbJCyVouUkjbfMVZKhKF B8GX70XZhxvevrzRq19hoIhjR0e4ZIeN6aoQAM1JebOJB7EV4jfoIM2z5VBDQJ6Szz xlobuBmRr2SIWp4oX8UPXSzO5pbHmWJUpYk/Jla0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50124: ASoC: mt6797-mt6351: Fix refcount leak in mt6797_mt6351_dev_probe Date: Wed, 18 Jun 2025 13:03:09 +0200 Message-ID: <2025061812-CVE-2022-50124-18c3@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=3113; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FO1xh6PPXuthe68Z9p5ds23Lk/fSfRSiBTwj8zlLmaM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcyqu5rzU/3Ugi+PZ15lcnJLGWxPKD524e97Vr3T1v md7RY1lOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiYdcY5ge1TFML87w5q+py Q0LM37NS06bvjmKY79IiL8N+JKNOTlr1tmV4mfL8ulR+AA== 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: mt6797-mt6351: Fix refcount leak in mt6797_mt6351_dev_probe of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-50124 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit f0ab0bf250da5a115d5675a686117f21984f0760 and fixed in 4.19.256 with commit 1042353bb67cd1c9109d7481ea182c7794336458 Issue introduced in 4.18 with commit f0ab0bf250da5a115d5675a686117f21984f0760 and fixed in 5.4.211 with commit b488ceb2336905f071f80627bc8a7d657274e5de Issue introduced in 4.18 with commit f0ab0bf250da5a115d5675a686117f21984f0760 and fixed in 5.10.137 with commit a0381a9f3e595988e83bac4c4dd1e45ed2b3c744 Issue introduced in 4.18 with commit f0ab0bf250da5a115d5675a686117f21984f0760 and fixed in 5.15.61 with commit 7dee72b1bcecb26bfff8d6360f2169f8656dbaf6 Issue introduced in 4.18 with commit f0ab0bf250da5a115d5675a686117f21984f0760 and fixed in 5.18.18 with commit 67a28402a9e8c229c7588f214d81d52903ea06ea Issue introduced in 4.18 with commit f0ab0bf250da5a115d5675a686117f21984f0760 and fixed in 5.19.2 with commit 38dc6faef05f33b4c889be8b7d65878e465c1c4b Issue introduced in 4.18 with commit f0ab0bf250da5a115d5675a686117f21984f0760 and fixed in 6.0 with commit 7472eb8d7dd12b6b9b1a4f4527719cc9c7f5965f 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-50124 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/mt6797/mt6797-mt6351.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/1042353bb67cd1c9109d7481ea182c7794336458 https://git.kernel.org/stable/c/b488ceb2336905f071f80627bc8a7d657274e5de https://git.kernel.org/stable/c/a0381a9f3e595988e83bac4c4dd1e45ed2b3c744 https://git.kernel.org/stable/c/7dee72b1bcecb26bfff8d6360f2169f8656dbaf6 https://git.kernel.org/stable/c/67a28402a9e8c229c7588f214d81d52903ea06ea https://git.kernel.org/stable/c/38dc6faef05f33b4c889be8b7d65878e465c1c4b https://git.kernel.org/stable/c/7472eb8d7dd12b6b9b1a4f4527719cc9c7f5965f