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 09DEF1ACEDF for ; Wed, 26 Feb 2025 01:58:05 +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=1740535085; cv=none; b=af0B/ozejenOdKilo1iVJjPx+aV5O3ptnbq87on+IBNK/rKG5qddpjjXv0PwgjdicZmRQmrBZDOzNtum5mPif3tMRiqrisUpAIYXiD/xmZ+GR4rHa2ayY7dEksfMtkltQqdQa9Q4cQimwxckpTKp5/oy4ZLVm2ZzbVQiJ0CfX0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535085; c=relaxed/simple; bh=/60ZfTWtmGikZmDrxVpJLxt1JU+kzl5DC1Z2rcAFrdk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WQ43EXoI2tueyqTOkKLNFtO2vCbs2ozHgraWhSGvnxx77g57gEYZOhKO9LMjwvmWzHJZSXL0euY3X5hUrdVI3U86uNJEa8LfiM6MttBmwi/WsRgv8zqVn8YUY+R69/hczGokslQ9yRmJMPyICZeUHkGdLSo3KTvMCjqD2AoNw7E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nOJuxCBf; 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="nOJuxCBf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1F6EC4CEDD; Wed, 26 Feb 2025 01:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535084; bh=/60ZfTWtmGikZmDrxVpJLxt1JU+kzl5DC1Z2rcAFrdk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nOJuxCBfPENcAVFU317OcHNyEK/e7l6/vTCc53/tr/R1UsyryXU6Wb5OAx2jh0G0r B3+AtUTmgJkRKtfzU9s6REeXj7mgloMIRWltaU9s4jfa1TjOHn+lqjPC/3c21vB7Gs qBQwoM94RyTSFgSN+CMr9Ls8U4cZXDo2boHXbskI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49088: dpaa2-ptp: Fix refcount leak in dpaa2_ptp_probe Date: Wed, 26 Feb 2025 02:54:53 +0100 Message-ID: <2025022658-CVE-2022-49088-a1ec@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=2826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/60ZfTWtmGikZmDrxVpJLxt1JU+kzl5DC1Z2rcAFrdk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SsxS4q9Yxmb0ydfPDZY+VjNF79eOqLoj1xVyXe5Ol iuoaKrtiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlcvcwwT+3AsuK/j288b+r1 SOUM9jA+87XiH8OC2WvPKZgwvqqc5C7D3BChmNplfWAjAA== 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: dpaa2-ptp: Fix refcount leak in dpaa2_ptp_probe This node pointer is returned by of_find_compatible_node() with refcount incremented. Calling of_node_put() to aovid the refcount leak. The Linux kernel CVE team has assigned CVE-2022-49088 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit d346c9e86d8685d7cdceddf5b2e9c4376334620c and fixed in 5.4.189 with commit fbe5f4c0dd3475178f17ddd8b8d5044ebeae0be7 Issue introduced in 5.3 with commit d346c9e86d8685d7cdceddf5b2e9c4376334620c and fixed in 5.10.111 with commit ebd1e3458dbf6643aa0272da398cb5b537d492b7 Issue introduced in 5.3 with commit d346c9e86d8685d7cdceddf5b2e9c4376334620c and fixed in 5.15.34 with commit 599874bbc4ed832ccb578d48ac0ae7344382ef43 Issue introduced in 5.3 with commit d346c9e86d8685d7cdceddf5b2e9c4376334620c and fixed in 5.16.20 with commit 46d120f7c163706d6c31ee00baa0be64c4572b78 Issue introduced in 5.3 with commit d346c9e86d8685d7cdceddf5b2e9c4376334620c and fixed in 5.17.3 with commit 45fdd98b70142521739615ad1bfb760401863b73 Issue introduced in 5.3 with commit d346c9e86d8685d7cdceddf5b2e9c4376334620c and fixed in 5.18 with commit 2b04bd4f03bba021959ca339314f6739710f0954 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-49088 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/freescale/dpaa2/dpaa2-ptp.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/fbe5f4c0dd3475178f17ddd8b8d5044ebeae0be7 https://git.kernel.org/stable/c/ebd1e3458dbf6643aa0272da398cb5b537d492b7 https://git.kernel.org/stable/c/599874bbc4ed832ccb578d48ac0ae7344382ef43 https://git.kernel.org/stable/c/46d120f7c163706d6c31ee00baa0be64c4572b78 https://git.kernel.org/stable/c/45fdd98b70142521739615ad1bfb760401863b73 https://git.kernel.org/stable/c/2b04bd4f03bba021959ca339314f6739710f0954