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 85E11292B41 for ; Wed, 18 Jun 2025 11:14:04 +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=1750245244; cv=none; b=oApGQrOHumd+oecC3WibrN5qxtQCkZ728QZG3xH05xo2JZb/zTmYXoydJKQhKPhoysGc5ymrE17i/vOHGWnTYIKhxc2AKPfuowWFUVRFs9fAThE0BmIJw7G8inR+zSs7GvYch85g3+OEi/oY9UB+f2gc3X6yK8ULcK1RnC6uJUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245244; c=relaxed/simple; bh=oSiIMgWY5D9RAwApeRXOu9WjQjW4Cqv9LBtwGwUj1/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hxHE4vmRyUy+dUqCJNNLq4uMvHN/hKg99OoLgSKCB7vFQL37sblNAf7Fct+d1CHAajW2+91M40nTjnFge2IKYNl/zV+6SyAvjSpRGmffpusaJIPFAqImmI5gVmTM8Z+o1h/HY2Kw0l6z2HdXeHx9UWgu2C7B1reLFJBUvkdeRLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DPug9UNp; 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="DPug9UNp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0F10C4CEE7; Wed, 18 Jun 2025 11:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245244; bh=oSiIMgWY5D9RAwApeRXOu9WjQjW4Cqv9LBtwGwUj1/o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DPug9UNpgJfH5wlrHgWKdfLv5M46SVa256eBb4fiZMJ+T+dIX5+LJ1aRRLGMxQEhw PzN73rwUqrfdALZlwehR37JF9GdTSTFgzDaLQAEjYQ+nmahHEjLM2KbIa+Hs17+9UO aVzn/LrWCBbLo89AnMF0m4kq8O2n2JA8AqDVrTXk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50141: mmc: sdhci-of-esdhc: Fix refcount leak in esdhc_signal_voltage_switch Date: Wed, 18 Jun 2025 13:03:26 +0200 Message-ID: <2025061818-CVE-2022-50141-fd0e@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=3380; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dbMZN21XNquSyoxIMg0BHxPptQKpRuBHzPExJyiVm4k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+rmL54Y55bFNdNOb5pQ7N7JcyZ0deyQ2/190Yojr 5YanGTa0xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATWc/IMN+HJ+NbXX/ba8Gj 1+fc8Dy5vHlz+GKGeYaC57aLZUw19BXu9D5zcY71nvD3bwE= 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: mmc: sdhci-of-esdhc: Fix refcount leak in esdhc_signal_voltage_switch of_find_matching_node() 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. of_node_put() checks null pointer. The Linux kernel CVE team has assigned CVE-2022-50141 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 4.14.291 with commit a63d5d01e83b984b1b9c7ae8fc9c8c93697a3820 Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 4.19.256 with commit 547db1dd98d1815574ebea7358015a17199a93bc Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 5.4.211 with commit 4c472a2c9ed6ea9d272268d7f484d4303c549f1a Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 5.10.137 with commit b305475df756256a186623f0991d05a816de881a Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 5.15.61 with commit 352377cf74710bc3368dddf78f17210dfe456933 Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 5.18.18 with commit b074f1e8060836baeb0ee91181f4194b9a0ee16a Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 5.19.2 with commit 8b902840f6a3584f702bcb59834691b30f3d7c5a Issue introduced in 4.12 with commit ea35645a3c66a74af92d3bbb4eb131220fc3e58a and fixed in 6.0 with commit b5899a3e2f783a27b268e38d37f9b24c71bddf45 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-50141 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/mmc/host/sdhci-of-esdhc.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/a63d5d01e83b984b1b9c7ae8fc9c8c93697a3820 https://git.kernel.org/stable/c/547db1dd98d1815574ebea7358015a17199a93bc https://git.kernel.org/stable/c/4c472a2c9ed6ea9d272268d7f484d4303c549f1a https://git.kernel.org/stable/c/b305475df756256a186623f0991d05a816de881a https://git.kernel.org/stable/c/352377cf74710bc3368dddf78f17210dfe456933 https://git.kernel.org/stable/c/b074f1e8060836baeb0ee91181f4194b9a0ee16a https://git.kernel.org/stable/c/8b902840f6a3584f702bcb59834691b30f3d7c5a https://git.kernel.org/stable/c/b5899a3e2f783a27b268e38d37f9b24c71bddf45