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 140AA1A707A for ; Thu, 27 Mar 2025 16:43:44 +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=1743093825; cv=none; b=IhFJR5SgxNNaBnD1YkYX3sVsDctwVR+T9pb6bKA+ff3TDuQV3q/yS3zMr8WfyeCIWj/WpobVO8BQwMlKhVtlvr3FB4LaHGXad4D0b3PcBxuhh6sSaFu6OXuPZtx4WUQN21Z5JtSCSm0grecvoAexoRsCYktAvg7SeyIUuSK6UAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093825; c=relaxed/simple; bh=fjtkzc3nucELYv8LEyQJQLDvrd0XcIgI3ShfWUy44Tg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qoFwPOXD2O45Ojpyt1mZ/YO63G1HNV0ky+lTDSDSa2crfTvLY+wNtcalr8iFs+h7By/KucLuEciDn7GFToDxs55l4lnoI5OOfNltVN2FHLA8jq8bXJnqJiFcUpMcsAEkklODZ9h/BWQW/C+VZ2l82XqGBM2D0079r2mLkHf5174= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qgVuKmSH; 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="qgVuKmSH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 346EFC4CEE5; Thu, 27 Mar 2025 16:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093824; bh=fjtkzc3nucELYv8LEyQJQLDvrd0XcIgI3ShfWUy44Tg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qgVuKmSHIITivwO7W7SHrsJwmDZnzk8T/4qxHwLFin0Kf7hGLX7jO/zWzYchh9sKV EWhfC/J1guCp6gbbs+MdRPCsmRnvVUqWNz/uzjvUj4ChNTM7fxVupGsqaA0qPPkLqc Ty+BmmRyEpnJTr8NRa+nUlCNyxOK51GZiB/QxqTU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49752: device property: fix of node refcount leak in fwnode_graph_get_next_endpoint() Date: Thu, 27 Mar 2025 17:43:10 +0100 Message-ID: <2025032700-CVE-2022-49752-19a3@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=2315; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fjtkzc3nucELYv8LEyQJQLDvrd0XcIgI3ShfWUy44Tg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG0RURHs3RodsV9gkfPHOx94Mdz7Vx4r/J5hJTy5/b njYrra0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayp4Fhvt8+WcFGpl7xVjXR hyt3Ous+VU9WZJgruyDnO5eCxuy0S8ayzMad1zQ84osA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: device property: fix of node refcount leak in fwnode_graph_get_next_endpoint() The 'parent' returned by fwnode_graph_get_port_parent() with refcount incremented when 'prev' is not NULL, it needs be put when finish using it. Because the parent is const, introduce a new variable to store the returned fwnode, then put it before returning from fwnode_graph_get_next_endpoint(). The Linux kernel CVE team has assigned CVE-2022-49752 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit b5b41ab6b0c1bb70fe37a0d193006c969e3b5909 and fixed in 5.15.91 with commit 7701a4bd45c11f9a289d8f262fad05705a012339 Issue introduced in 5.15 with commit b5b41ab6b0c1bb70fe37a0d193006c969e3b5909 and fixed in 6.1.9 with commit e75485fc589ec729cc182aa9b41dfb6c15ae6f6e Issue introduced in 5.15 with commit b5b41ab6b0c1bb70fe37a0d193006c969e3b5909 and fixed in 6.2 with commit 39af728649b05e88a2b40e714feeee6451c3f18e 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-49752 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/base/property.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/7701a4bd45c11f9a289d8f262fad05705a012339 https://git.kernel.org/stable/c/e75485fc589ec729cc182aa9b41dfb6c15ae6f6e https://git.kernel.org/stable/c/39af728649b05e88a2b40e714feeee6451c3f18e