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 6E780334C30 for ; Wed, 24 Dec 2025 13:08:06 +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=1766581686; cv=none; b=j0P8tPy+0N3NnAXubIxdNmxLs71fjqzMFCS8fF5pJUQxfIMgQ6cmkTsm9D/LijRaORQqoxmlUmL5FJvLf68JFFny8/IXEtKE4ODJFDMVNpbanoOsrxlBMLIvHCwo9o3lh5b+HT5HfKDdmpu6d7hUEa6Vw1v2RaIyWu2QVdOcMqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581686; c=relaxed/simple; bh=UhinlHRW7j1kJigTIQ/163XxgvcqJRehEggwliT48e0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ayT6StFSoSwshJqwoB3TCQWtnqMFF2Iej+a81XrPnvi4VvDNIzvurdzd/0xkob9LNJYAGc8F3m1iPx13Ff5ge1SkvwZp428UJPlVEnLwo1eTGnO6NyAxNHnuuI/v0V/3vPD+1gJq4GkiWDkwofjnnNxXiS04MF2vI/Uca2bc8cQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OU2fbxPm; 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="OU2fbxPm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9EE6C4CEFB; Wed, 24 Dec 2025 13:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581686; bh=UhinlHRW7j1kJigTIQ/163XxgvcqJRehEggwliT48e0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=OU2fbxPmjal6h3gEYjft7G533EdKDhrhNjMOzUxhruNhwSl3ZL7VMy1BEzhwzveXI 90tjWBiiWUnV6A15euU+1C11jwldrlvmBRe6zvOIDjhZpGtWmuDxMXJo4WfJ9wCSfC Qwy/4OW55mBIzN9tTxuflVqWfx5xo2jDKtycJPug= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50777: net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe Date: Wed, 24 Dec 2025 14:06:28 +0100 Message-ID: <2025122400-CVE-2022-50777-d1e3@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3448; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fYedsyx2voj9PhVE1UyVrC5RZ7yYCLihaVfzUIqlQYY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTy1c50h+v3Llu8tmxscytVO6Hna9bt2896lm+82wv m/lZaefd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEDk9lWLDcTSfSXfOOvmCp +9M79u8lZx79Uckwz1zA6ZB/zd8fAhKFna+UK1X1uazMAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe of_phy_find_device() return device node with refcount incremented. Call put_device() to relese it when not needed anymore. The Linux kernel CVE team has assigned CVE-2022-50777 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14.74 with commit 3f7056e1822d648f8022997497edc6cad2ad1e73 and fixed in 4.14.303 with commit 53526dbc8aa6b95e9fc2ab1e29b1a9145721da24 Issue introduced in 4.19 with commit ab4e6ee578e88a659938db8fbf33720bc048d29c and fixed in 4.19.270 with commit 78b0b1ff525d9be4babf5a148a4de0d50042d95d Issue introduced in 4.19 with commit ab4e6ee578e88a659938db8fbf33720bc048d29c and fixed in 5.4.229 with commit 00616bd1913a4f879679e02dc08c2f501ca2bd4c Issue introduced in 4.19 with commit ab4e6ee578e88a659938db8fbf33720bc048d29c and fixed in 5.10.163 with commit 106d0d33c9d1ec4ddeeffc1fdc717ff09953d4ed Issue introduced in 4.19 with commit ab4e6ee578e88a659938db8fbf33720bc048d29c and fixed in 5.15.87 with commit 4d112f001612c79927c1ecf29522b34c4fa292e0 Issue introduced in 4.19 with commit ab4e6ee578e88a659938db8fbf33720bc048d29c and fixed in 6.0.19 with commit 52841e71253e6ace72751c72560950474a57d04c Issue introduced in 4.19 with commit ab4e6ee578e88a659938db8fbf33720bc048d29c and fixed in 6.1.5 with commit ee84d37a5f08ed1121cdd16f8f3ed87552087a21 Issue introduced in 4.19 with commit ab4e6ee578e88a659938db8fbf33720bc048d29c and fixed in 6.2 with commit d039535850ee47079d59527e96be18d8e0daa84b Issue introduced in 4.9.131 with commit a5a849c9e8a6c357f84a5e249cb468f20da6d28f Issue introduced in 4.18.12 with commit 900812a0d318954400d20b0190c7d788b4ff2cc2 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-50777 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/phy/xilinx_gmii2rgmii.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/53526dbc8aa6b95e9fc2ab1e29b1a9145721da24 https://git.kernel.org/stable/c/78b0b1ff525d9be4babf5a148a4de0d50042d95d https://git.kernel.org/stable/c/00616bd1913a4f879679e02dc08c2f501ca2bd4c https://git.kernel.org/stable/c/106d0d33c9d1ec4ddeeffc1fdc717ff09953d4ed https://git.kernel.org/stable/c/4d112f001612c79927c1ecf29522b34c4fa292e0 https://git.kernel.org/stable/c/52841e71253e6ace72751c72560950474a57d04c https://git.kernel.org/stable/c/ee84d37a5f08ed1121cdd16f8f3ed87552087a21 https://git.kernel.org/stable/c/d039535850ee47079d59527e96be18d8e0daa84b