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 1B6D317CA08 for ; Tue, 16 Jul 2024 12:28:23 +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=1721132905; cv=none; b=kMtWpaGb5IaduDVjOm1hw2n0eh5HF3YS6CmKil1ttQ4cPXUfXUnGMnERVRPzLlvgJBrOOskNS8YkdMZMDeQxa+bD+rdOaFHhdysE2adXNvANo/zf5n+aJ+fuRC6RB8KI78J+MuGrhdt/NOhAM98/uyH6xJlefarCPRP2ODdhfvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721132905; c=relaxed/simple; bh=W9jQetUcjf0Qt6ob0L68QLKal4zvZsdcKcsGp+Md+d0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T0LQ63ZL1fOShFEKAj5C8pU4QkUv9tEgS6lKsW9bsYJAAwZ599e4dtJbh7z94e0yIpJdUYt3b/mR8AdvMEPEOWTYp6IXQMLhuN7I3VPRPgfMmaLJBRY7oPvvHLsIGGanSgaqFj/0qNflHt9mHojTt4bJEIbIaoglNAVTwwaCM5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QzCa2jyl; 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="QzCa2jyl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60845C116B1; Tue, 16 Jul 2024 12:28:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721132903; bh=W9jQetUcjf0Qt6ob0L68QLKal4zvZsdcKcsGp+Md+d0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QzCa2jylFl1P/PHVZTSdIj939C4GYRfF12QgmkkXraYLm3rsXkw8sEL4ijSquhnV7 DnWCn9DCosj0oZ3EZLRxI1iMvh2llJqOWuETCo0R1iFTolz8gnYSggWXTtKmKRHy+g kaSZ4otEKs2BBW2Jiug49xYKFmo3/U/eMi/5pjY8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48856: gianfar: ethtool: Fix refcount leak in gfar_get_ts_info Date: Tue, 16 Jul 2024 14:27:41 +0200 Message-ID: <2024071626-CVE-2022-48856-fd52@gregkh> X-Mailer: git-send-email 2.45.2 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=2559; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W9jQetUcjf0Qt6ob0L68QLKal4zvZsdcKcsGp+Md+d0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnT0vXXP7z1tWs6m6nlbD+XtuKDvxb8cfp+M+Kn+qMdm R22JlabO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiXRcZ5id9vPja4dA6ueT1 vy4KOaqqF10I/8Ewz9LV+JGldkyE3BOJBbob7RbdWlakDwA= 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: gianfar: ethtool: Fix refcount leak in gfar_get_ts_info The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. The Linux kernel CVE team has assigned CVE-2022-48856 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 7349a74ea75c and fixed in 4.19.235 with commit 6263f2eb93a8 Issue introduced in 4.18 with commit 7349a74ea75c and fixed in 5.4.185 with commit f7b3b5203491 Issue introduced in 4.18 with commit 7349a74ea75c and fixed in 5.10.106 with commit 21044e679ed5 Issue introduced in 4.18 with commit 7349a74ea75c and fixed in 5.15.29 with commit f49f646f9ec2 Issue introduced in 4.18 with commit 7349a74ea75c and fixed in 5.16.15 with commit 0e1b9a2078e0 Issue introduced in 4.18 with commit 7349a74ea75c and fixed in 5.17 with commit 2ac5b58e645c 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-48856 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/gianfar_ethtool.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/6263f2eb93a85ad7df504daf0c341a7fb6bbe8a6 https://git.kernel.org/stable/c/f7b3b520349193f8a82cca74daf366199e06add9 https://git.kernel.org/stable/c/21044e679ed535345042d2023f7df0ca8e897e2a https://git.kernel.org/stable/c/f49f646f9ec296fc0afe7ae92c2bb47f23e3846c https://git.kernel.org/stable/c/0e1b9a2078e07fb1e6e91bf8badfd89ecab1e848 https://git.kernel.org/stable/c/2ac5b58e645c66932438bb021cb5b52097ce70b0