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 546DF26E6F6 for ; Sat, 4 Oct 2025 15:18:43 +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=1759591123; cv=none; b=b+dL1q1AZsbWvQ8lqPAsQTqK3c84B/ePP9YB84SQjKY0vcA8E4Ct4nt7CYY8UwiYXvFFEpCurL3RpVDP7wBdfr9UAuw1FQtZYPmam+oAozKHP1LcdESvT3lJV/UC6IC5CxYlstgM8NSJ2GB2ypDXatJZZXLYcF63aSoIpDllk0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591123; c=relaxed/simple; bh=2cOQhMkxVP0R2QV00aKFsArO3jORt36afek4OxEMQrc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=irKZtdh5Jwz4OCI5D/LknqSvzABDvOrWoNmAnRJO3+DbkjRdSscQycM/CC3E9vnzalIM341oc0eSUp733WOZxw0jNM8FU500eNUs3wFUrlPGXWIE5+MmXtpkdXkyJB3h3y445B1XrIzD5WeN1Uei8bUD6ymGwwirIAHRQpVkjBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cpjNuJYG; 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="cpjNuJYG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEEBDC4CEF1; Sat, 4 Oct 2025 15:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591123; bh=2cOQhMkxVP0R2QV00aKFsArO3jORt36afek4OxEMQrc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cpjNuJYGyhNZdnyhEGZy90OxkEJf9R2iUeIBroV3R/EW3OF4mhfStDqm1B7fYSyPO hEljSLzSfNEV+jZ5yPMfEZ/rlNyMNUzUywHhPUp04E3nC35PsWLWdy9P4Uyo3SxdVp n2gpCVjhLkdDi5xNIRoncZeZUFB2g9TJYdaM5xIw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50480: memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe() Date: Sat, 4 Oct 2025 17:16:39 +0200 Message-ID: <2025100439-CVE-2022-50480-f296@gregkh> X-Mailer: git-send-email 2.51.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=3018; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+EcvbwIzAzvM/NDa43cDKK6++jcPnieT5Wo4aJJVvUA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrcLVVVffPXHOOUOUy72vvYnFsm//mWi/2RMl7F/5f O9SfrqvI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYi5MAwv7DPeeMykXZF6QdJ tqfNm3e3n+r7zzDPYL2ziUvTO6mwiQs/5gv3K7ma/pgAAA== 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: memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe() The break of for_each_available_child_of_node() needs a corresponding of_node_put() when the reference 'child' is not used anymore. Here we do not need to call of_node_put() in fail path as '!match' means no break. While the of_platform_device_create() will created a new reference by 'child' but it has considered the refcounting. The Linux kernel CVE team has assigned CVE-2022-50480 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit fee10bd2267868f2a3e7ba008ef7665aac5e4412 and fixed in 5.4.220 with commit b37f4a711e5d4bf3608ccbc6de82b52e92b441a0 Issue introduced in 5.0 with commit fee10bd2267868f2a3e7ba008ef7665aac5e4412 and fixed in 5.10.150 with commit fde46754d5483bc398018bbec3c8ef5c55219e67 Issue introduced in 5.0 with commit fee10bd2267868f2a3e7ba008ef7665aac5e4412 and fixed in 5.15.75 with commit 566b143aa5112a0c2784e20603778518bb799537 Issue introduced in 5.0 with commit fee10bd2267868f2a3e7ba008ef7665aac5e4412 and fixed in 5.19.17 with commit 44db35ceb94756ba513dcf6b69bf9e949b28469c Issue introduced in 5.0 with commit fee10bd2267868f2a3e7ba008ef7665aac5e4412 and fixed in 6.0.3 with commit 49605dc25e7fb33bf8b671279d4468531da90f89 Issue introduced in 5.0 with commit fee10bd2267868f2a3e7ba008ef7665aac5e4412 and fixed in 6.1 with commit 61b3c876c1cbdb1efd1f52a1f348580e6e14efb6 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-50480 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/memory/pl353-smc.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/b37f4a711e5d4bf3608ccbc6de82b52e92b441a0 https://git.kernel.org/stable/c/fde46754d5483bc398018bbec3c8ef5c55219e67 https://git.kernel.org/stable/c/566b143aa5112a0c2784e20603778518bb799537 https://git.kernel.org/stable/c/44db35ceb94756ba513dcf6b69bf9e949b28469c https://git.kernel.org/stable/c/49605dc25e7fb33bf8b671279d4468531da90f89 https://git.kernel.org/stable/c/61b3c876c1cbdb1efd1f52a1f348580e6e14efb6