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 7AB55295DA6 for ; Wed, 18 Jun 2025 11:16:01 +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=1750245361; cv=none; b=Wuw8BTvqJO40hbOWc3AGtuFsBz9KxU7/EvUrsFzsdd5KakwjjXmgwQHLLMjcaiReeKzxCYOCmrU0euISp0egQoqtYA+BqE1zgM3n3bI7hTcbw1qCu4nUSG6w07EGPO+FHVGQfBBen3rFO3otD0g7gb9L/uvnos9/Hf1XjR9XiQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245361; c=relaxed/simple; bh=UGSrW6PKf4DMexxJsyRo580cFwYdnDvQrtECdph4Lpk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pJNiESW4GPlWIx/GnXMcLrNH8Gtk6rDERmFbaOZ6PHcFfi7vplUz76gCW5uYrR8CShfMocs4hZ9T1yuf3ckwf9IypKQ2yKxVEsuCadT9a7ZKPxrtGr3aYCZGmgWmKK0kLN3O3VEpNmmuONpq380ZO/9hLEb9qprAXlrIDJALqec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aNq7SVxc; 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="aNq7SVxc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1C75C4CEE7; Wed, 18 Jun 2025 11:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245361; bh=UGSrW6PKf4DMexxJsyRo580cFwYdnDvQrtECdph4Lpk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aNq7SVxc/4JyMOdGnecyASGMK43aqrBd1PgA2HkX7nE3YCBjq5n2pBHSgcpsOmlXL s2N2LGDi+PWMif5g1nj00OaOLmV9XRWoT/4NzwDMSD8hT7dsgGkJSk3PqWGdUdNjRP LcxNz4hIGSm49aBRa4/+Tut10qwz6OaisDAvkG7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50176: drm/mcde: Fix refcount leak in mcde_dsi_bind Date: Wed, 18 Jun 2025 13:04:01 +0200 Message-ID: <2025061831-CVE-2022-50176-f05e@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=2900; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aG6S8UzU+koe9Z2sbZV+M0RfZk3FtAhM+Y61HiINjpg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc7rvOHXE7VngW/1Umyur4B9LnaWQNv/xIztyhf+ud WPfsuV0RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykmJthwSnbpyLF9/JC7v13 ez/jpuZ1xv2NTQwL5har7t+SLVxU+fTS762//q9LOMh5CwA= 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: drm/mcde: Fix refcount leak in mcde_dsi_bind Every iteration of for_each_available_child_of_node() decrements the reference counter of the previous node. There is no decrement when break out from the loop and results in refcount leak. Add missing of_node_put() to fix this. The Linux kernel CVE team has assigned CVE-2022-50176 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.4.211 with commit 87c35bbefdfa3c5edfb8c80f5c04717aaacc629d Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.10.137 with commit f57699a9b66ea11f000f56d1f1179059239b8690 Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.15.61 with commit 3123ae6fdd4013d24a3a4877084b14e917faae5c Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.18.18 with commit 7214902de5b1fb2b632a7b8b3b9540e41aabab38 Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 5.19.2 with commit 32c827e30bb44ae809950a9efab59e98e44d30e5 Issue introduced in 5.3 with commit 5fc537bfd00033a3f813330175f7f12c25957ebf and fixed in 6.0 with commit 3a149169e4a2f9127022fec6ef5d71b4e804b3b9 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-50176 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: drivers/gpu/drm/mcde/mcde_dsi.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/87c35bbefdfa3c5edfb8c80f5c04717aaacc629d https://git.kernel.org/stable/c/f57699a9b66ea11f000f56d1f1179059239b8690 https://git.kernel.org/stable/c/3123ae6fdd4013d24a3a4877084b14e917faae5c https://git.kernel.org/stable/c/7214902de5b1fb2b632a7b8b3b9540e41aabab38 https://git.kernel.org/stable/c/32c827e30bb44ae809950a9efab59e98e44d30e5 https://git.kernel.org/stable/c/3a149169e4a2f9127022fec6ef5d71b4e804b3b9