From mboxrd@z Thu Jan 1 00:00:00 1970 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 6BE45215F6A for ; Wed, 26 Feb 2025 02:13:13 +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=1740535993; cv=none; b=GLKZS4PmvvgvECK6YJNXakskehytlB9+a+4sFXXXpgz2KyzoliK/kG4EpfeRbR6jU8tIDvbakeq9b87/xG08EoEn+xBKh+3ocJrS0g0qEfGCYh+2B6fFlCg66rFXukWlTBynj74Xqf3MQE8UIcnpqLxqhPB0MIMhayOrdiPaEC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535993; c=relaxed/simple; bh=B1iXamlE1EP+FYE4qPa8uJDFKxd1yxcrJg4zmaZOeuU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i05NO+GhPhetpcU9WFmeeMgSKo6zfuiW+aTz+arAIXiSBEf9WLx2Th5J9NHVpccc8TVAMcUvHdxsvXWsZfdNGf1UGgU0LabloskmZh7EE7YLVDNuABerYTEB/stchnTLJNyXM0GaWHBFiFd9MXcTtwuvn2BTAFUod6f8VfBuMeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ye0kQKpk; 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="ye0kQKpk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FF3CC4CEE6; Wed, 26 Feb 2025 02:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535993; bh=B1iXamlE1EP+FYE4qPa8uJDFKxd1yxcrJg4zmaZOeuU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ye0kQKpkHcUPgBrgPN0SeQ9nrzgbSqcqJieXmjXiR+9upcsooEJ7GETUlQL9kcd7A tPBDhFqwWr4i0IgvZkEGEEKidifRKbk25UWlB8pWFM0tBIwSycYc0Yerv+HbDwuj0G aE7VDHBNOw3/sKlrHE90KGSkmQpd4YN9fb8efil4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49346: net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list Date: Wed, 26 Feb 2025 03:10:20 +0100 Message-ID: <2025022641-CVE-2022-49346-4f13@gregkh> X-Mailer: git-send-email 2.48.1 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=2982; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B1iXamlE1EP+FYE4qPa8uJDFKxd1yxcrJg4zmaZOeuU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yp+1nVOZ1yh4Zd38tQZNFy58WfSz0uuo4u1myVONi 9r/tIVt7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ8HAxzPfsdpp2ehOH+rIX 81b9O7776Ulpjw6GBZ0+t+1yqxeoHCvbrXf58FuVpR6XXAA= 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: net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_list Every iteration of for_each_available_child_of_node() decrements the reference count of the previous node. when breaking early from a for_each_available_child_of_node() loop, we need to explicitly call of_node_put() on the gphy_fw_np. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49346 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 14fceff4771e51b23b4485b575cf9e5b3414b89b and fixed in 5.4.198 with commit 7c8df6fad43d9d5d77f281f794b2a93cd02fd1a9 Issue introduced in 4.20 with commit 14fceff4771e51b23b4485b575cf9e5b3414b89b and fixed in 5.10.122 with commit c2ae49a113a5344232f1ebb93bcf18bbd11e9c39 Issue introduced in 4.20 with commit 14fceff4771e51b23b4485b575cf9e5b3414b89b and fixed in 5.15.47 with commit 54d6802c4d83fa8de7696cfec06f475d5fd92d27 Issue introduced in 4.20 with commit 14fceff4771e51b23b4485b575cf9e5b3414b89b and fixed in 5.17.15 with commit 32cd78c5610f02a929f63cac985e73692d05f33e Issue introduced in 4.20 with commit 14fceff4771e51b23b4485b575cf9e5b3414b89b and fixed in 5.18.4 with commit 2e007ac6fa7c9c94ad84da075c5c504afad690a0 Issue introduced in 4.20 with commit 14fceff4771e51b23b4485b575cf9e5b3414b89b and fixed in 5.19 with commit 0737e018a05e2aa352828c52bdeed3b02cff2930 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-49346 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/net/dsa/lantiq_gswip.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/7c8df6fad43d9d5d77f281f794b2a93cd02fd1a9 https://git.kernel.org/stable/c/c2ae49a113a5344232f1ebb93bcf18bbd11e9c39 https://git.kernel.org/stable/c/54d6802c4d83fa8de7696cfec06f475d5fd92d27 https://git.kernel.org/stable/c/32cd78c5610f02a929f63cac985e73692d05f33e https://git.kernel.org/stable/c/2e007ac6fa7c9c94ad84da075c5c504afad690a0 https://git.kernel.org/stable/c/0737e018a05e2aa352828c52bdeed3b02cff2930