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 AECF2216E0B for ; Wed, 26 Feb 2025 02:14:11 +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=1740536051; cv=none; b=V4CpW+jzt2lORVLMSoczXRJ9rQ8woD5NtlwZ1YPPvyvxK8kuvnoDOFPraJvcNFyZA0z20jCig9JfsiyNC5HHKFQZHJGLUXiubF2jkB8NNNPZbo86XJWfSWFssQt4wMu1IKtbOfafD/NVrJfCTfIv1oqEoDq6ItS8u9gf2aM6TT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536051; c=relaxed/simple; bh=gHohFkK/WrX1/1fgMHhphu29C0cY8DlFDwEZBcoF4Ms=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j+ZWelsVsbHruSx9RlQq2RZ5D7gCYufSqawKFJPo6MwggczQObEjEqXFHR3giD9lq0ybooZgFEw6jYlUuO7+ITuSFsehAtCbJfp7yUg7XHQ2hJYBxwk5cnGdNKWxJW+L7Jo2CHOt2Wi0yW9iSLn1bOlViafoW+SWqBTzb4e0cO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZJCHuxHq; 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="ZJCHuxHq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D9B6C4CEDD; Wed, 26 Feb 2025 02:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536051; bh=gHohFkK/WrX1/1fgMHhphu29C0cY8DlFDwEZBcoF4Ms=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZJCHuxHqVpwxRy1jvfoRXErf5HX4lkVorLYsCn5S/+gZcSX6TCkdsZFUKAElIH0FS EFKmLnFcamtXPs+p98Mp1DUTkSS8JqlS0Aap5Sxm7iQLlT4TFQgp5a2RJCnrdRgmZJ +4YEOcpsvBVo+U5bZORZ//ACQ+M5kt0rKCPmoJVE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49386: net: ethernet: ti: am65-cpsw-nuss: Fix some refcount leaks Date: Wed, 26 Feb 2025 03:11:00 +0100 Message-ID: <2025022648-CVE-2022-49386-a590@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=2739; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gHohFkK/WrX1/1fgMHhphu29C0cY8DlFDwEZBcoF4Ms=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yt8ELq3S/Pxi1c1J/a3aZ2oWGF0QMj/qKr10semc8 sLHpxraO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAih08yLNi546ajg2pm7HXX Y5OWsSWFdkzmvMkwz8ZQomXymzWyFqlT/NQsc9JfF84+DAA= 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: ethernet: ti: am65-cpsw-nuss: Fix some refcount leaks of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. am65_cpsw_init_cpts() and am65_cpsw_nuss_probe() don't release the refcount in error case. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49386 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 5.10.122 with commit f7ba2cc57f404d2d9f26fb85bd3833d35a477829 Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 5.15.47 with commit a4b7ef3b159805ba6be061d0cd2403d84b9b0063 Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 5.17.15 with commit 78aca10a16f001c9f49f1cc4dadfee8d444bb173 Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 5.18.4 with commit 2e44f21c384503562713b7d3b673c40bed20af3d Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 5.19 with commit 5dd89d2fc438457811cbbec07999ce0d80051ff5 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-49386 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/ethernet/ti/am65-cpsw-nuss.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/f7ba2cc57f404d2d9f26fb85bd3833d35a477829 https://git.kernel.org/stable/c/a4b7ef3b159805ba6be061d0cd2403d84b9b0063 https://git.kernel.org/stable/c/78aca10a16f001c9f49f1cc4dadfee8d444bb173 https://git.kernel.org/stable/c/2e44f21c384503562713b7d3b673c40bed20af3d https://git.kernel.org/stable/c/5dd89d2fc438457811cbbec07999ce0d80051ff5