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 74D0C2E2DD2 for ; Wed, 1 Oct 2025 11:52:50 +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=1759319570; cv=none; b=k6C7cCPOCd3cKuXduHA7LtU4oMqiXU35JNPSn5k2hczuSYevFQxVDPUjaindjfdXJJ6FN8Q6E4IYUmcbVX6wcpLo5fUjXDjy6R/GwU+pqesZQ1UwTztE2uY4budR9A2j085WMIh44LCg/GLq5ipHcNGQ2D7co+GFzfqjj3SyQGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319570; c=relaxed/simple; bh=KlT8t6rD+v5AilWPLcD8v3nfq4xUml2U8zTEV3Il4IQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZWXcKle1hHQYBHhthEbLxlsqMDHZQQ6/AvEVJ6KLpq1/Eiv+Ogm5azYR97SfeiIfc1bSy57eRq9v4Mr6JkDuePwZkKtG4t0CA78KQeCQMsFx1aI/lktbMzZulPrNGWPvpvhmm7SfObRPKC6s2xjAAUf7o/vuIPllOczel9eNqSw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2O1xlC+k; 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="2O1xlC+k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D75B2C4CEF4; Wed, 1 Oct 2025 11:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319570; bh=KlT8t6rD+v5AilWPLcD8v3nfq4xUml2U8zTEV3Il4IQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2O1xlC+knRsRUfDhXk2ipK6AwbbaZYCCujeKeIs562uwbIUvCwmUZKuI6GRzcA9+r MpW+BlY0HDzWIvhpVn6261VVFamE0uQXd6Sf9eXKKg6Kot3QT/DVX1N17Asv07GNFl 2dp2FVwzOEN3U0PDrHth3vyoeZY8j2PytllSoIMA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50429: memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() Date: Wed, 1 Oct 2025 13:42:02 +0200 Message-ID: <2025100157-CVE-2022-50429-4bc6@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=2595; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mlV7mvsm+yZ26nvdRXPZX7NyQPCncLsIWTltD8EZQoY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hVsVRKzPXqrzm3Z7QYXZSoPkyuUbW98azGGKtnrc6 il/gb+lI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyL5dhrtxW86437E8OKUax XhZqUYtcdyo4nmGenufOsGkrW5dbFXI09q3ePX33zL2NAA== 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: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() We should add the of_node_put() when breaking out of for_each_child_of_node() as it will automatically increase and decrease the refcount. The Linux kernel CVE team has assigned CVE-2022-50429 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 976897dd96db94c74209d0a0671d7a73aa02fab9 and fixed in 5.10.150 with commit 1d312c12c91f831fcc48623c921f2d4560edb159 Issue introduced in 5.5 with commit 976897dd96db94c74209d0a0671d7a73aa02fab9 and fixed in 5.15.75 with commit 7e053784c4c70df28324106d476778be7a4519b3 Issue introduced in 5.5 with commit 976897dd96db94c74209d0a0671d7a73aa02fab9 and fixed in 5.19.17 with commit daab421fc2dc7d6ae7eb20a3f565ae09652c68b9 Issue introduced in 5.5 with commit 976897dd96db94c74209d0a0671d7a73aa02fab9 and fixed in 6.0.3 with commit 3b321bf7687968a090cf6b62bd8e67d692f59a16 Issue introduced in 5.5 with commit 976897dd96db94c74209d0a0671d7a73aa02fab9 and fixed in 6.1 with commit 48af14fb0eaa63d9aa68f59fb0b205ec55a95636 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-50429 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/of_memory.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/1d312c12c91f831fcc48623c921f2d4560edb159 https://git.kernel.org/stable/c/7e053784c4c70df28324106d476778be7a4519b3 https://git.kernel.org/stable/c/daab421fc2dc7d6ae7eb20a3f565ae09652c68b9 https://git.kernel.org/stable/c/3b321bf7687968a090cf6b62bd8e67d692f59a16 https://git.kernel.org/stable/c/48af14fb0eaa63d9aa68f59fb0b205ec55a95636