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 30153D27E for ; Mon, 15 Sep 2025 14:04:34 +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=1757945075; cv=none; b=hJWN0cMWozf6vBdtkMMwzqk8dzKkKYmG541v/YcM1jc6BJvurBQXsPHN0/gHcWHFDfhtVDOAOE04kAAc0ee91Uqu/zuj2Xv8RxQq88AtGUmkXM4wLJbwL7s681momekgCqAzDu+1yhFPSGnBtitd6jVtIxtI5JrEUUFHqM/InlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757945075; c=relaxed/simple; bh=eKPrpY+EDiKF1GxPLpEedPbwLswyMCDO6WTcXLw3R7c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gkvyVMEj5EbAEfQWz3miLmqQbp+wrCscVhqa4DFCTpgnpHobQsBeo6UhvUMzV9ntvltCeatuFHOEqtmerIlnKWoGhgrU+Ddkfc9phk6QkoC/eXeZQiZEm7BCris+UmZCjRoQkv5AkfX7oaPMXXieNIeRdOdZP9gYDl+m9o3gzFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U881LpIu; 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="U881LpIu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66DA9C4CEF1; Mon, 15 Sep 2025 14:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757945074; bh=eKPrpY+EDiKF1GxPLpEedPbwLswyMCDO6WTcXLw3R7c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=U881LpIunvK/KdLkrphFfxMYBMIyVQmZkBz/KNTpISD0GwIve1INgZAZ24v1Q7HoI 1tJiEMtb/MFedIydBtbfJ22SQQRmVHwOXLsLke7C5PAGTj4hU3z/TzUHVHkW9p3SzK ZLZNz7rsZ0Nd8Z14DfUc6iaIbyE6nBWcl+qexLss= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50249: memory: of: Fix refcount leak bug in of_get_ddr_timings() Date: Mon, 15 Sep 2025 16:01:57 +0200 Message-ID: <2025091549-CVE-2022-50249-bfbe@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=3502; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RsXc2ITkdrDLqZACJmzwapQ2twnvOc93FzE9at2WGeE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZHwfC65abnAn6HJ4j6jpQr9UqbWsTLPsH+y6+LLjw WVZz0tqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARn3aGuTLcfI8U9UOXOBT3 VRY1prPMPTb7G8P88oj3tmcO/ZlafN5Q6yzb9Qvrli8TAgA= 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_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-50249 to this issue. Affected and fixed versions =========================== Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 4.9.331 with commit a4d0bd4388e1a39df47e8aaa044ef6a7ee626e48 Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 4.14.296 with commit a4f7eb83852a65b6f8dea7dcc42b7c76d4d9b0a3 Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 4.19.262 with commit 68c9c4e6495b825be3a8946df1a0148399555fe4 Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 5.4.220 with commit 85a40bfb8e7a170abcf9dae2c0898a1983e48daa Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 5.10.150 with commit daaec4b3fe2297b022c6b2d6bf48b6e5265a60b9 Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 5.15.75 with commit 2680690f9ce4e6abbb4f559e97271c15b7eeda97 Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 5.19.17 with commit 62ccab6e3376f8a22167c3b81468ae4f3e7d25f1 Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 6.0.3 with commit 1c6cac6fa4d08aea161f83d38117d733b3c3a000 Issue introduced in 3.7 with commit e6b42eb6a66c188642aeb447312938c6f6ebee86 and fixed in 6.1 with commit 05215fb32010d4afb68fbdbb4d237df6e2d4567b 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-50249 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/a4d0bd4388e1a39df47e8aaa044ef6a7ee626e48 https://git.kernel.org/stable/c/a4f7eb83852a65b6f8dea7dcc42b7c76d4d9b0a3 https://git.kernel.org/stable/c/68c9c4e6495b825be3a8946df1a0148399555fe4 https://git.kernel.org/stable/c/85a40bfb8e7a170abcf9dae2c0898a1983e48daa https://git.kernel.org/stable/c/daaec4b3fe2297b022c6b2d6bf48b6e5265a60b9 https://git.kernel.org/stable/c/2680690f9ce4e6abbb4f559e97271c15b7eeda97 https://git.kernel.org/stable/c/62ccab6e3376f8a22167c3b81468ae4f3e7d25f1 https://git.kernel.org/stable/c/1c6cac6fa4d08aea161f83d38117d733b3c3a000 https://git.kernel.org/stable/c/05215fb32010d4afb68fbdbb4d237df6e2d4567b