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 A6B419443 for ; Mon, 8 Dec 2025 01:17: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=1765156625; cv=none; b=IOUQZyFB71B4ppadMY67axmPFgM3keQ14+zvLUhf0W+IGYLJsFkZ4rhp31GPxzN8stDVdZBgrqfeQc1vMMCikQuu1QlRTfCYFAKdxNHsoXrK9yR6Zfjjt1qhxX0j7L//vs7XQZfjvWc/ujJMAGT+qrAxpWe3STZN0CfNiGK/k54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765156625; c=relaxed/simple; bh=OH0LECjpSv7NCSnxQPeW0oKYotrYAkV7ilAd+umGcYo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DOzOgy6qVSAyX2fVYM5RnIro8YIvcpBrJuW7iOHfBd/klzQQ4QrjLGA9dDBnNgPUF/Inz6VOyTf5kQlEUE6ghP95WltKNfRFgHnLzmCE4mv/+HzZXtlRcGil0WDeDI3xOquK4Nm/Cm2Sr3uaAYsW84Q/9TD3Mdtxq3qe+dKwK2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2WhDTHCI; 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="2WhDTHCI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36AE3C4CEFB; Mon, 8 Dec 2025 01:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765156625; bh=OH0LECjpSv7NCSnxQPeW0oKYotrYAkV7ilAd+umGcYo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=2WhDTHCIWIve3mHWyKRK8LzN4s/Jv+6k7vwyOJ+qZjSUZXbamnRtnd9usYmzKKgIP Rgx67MSZkkLO6YmSpKYKMmwUKdmey5revfE3PSiDyIPTmbHS3sH+nSx7Uc1cfnZPJT c6l8bOz9Fheu11iBS4tXLlXvdou5T+WncMaPPc2o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50624: net: netsec: fix error handling in netsec_register_mdio() Date: Mon, 8 Dec 2025 10:17:01 +0900 Message-ID: <2025120853-CVE-2022-50624-0011@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=2988; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X+xXSRITmnv8dNerJjX57tcKwuCeZVdNRe2t3qdpfPk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlm6qzV8vsbvn9Wv7RC5Oz8tX1h89VCL9SqMxusY1py2 m1e+o4LHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRazkM8zMdb/1YG6P/wILX 27JwdYxvH3trKcNcQcH5Ezyk5Ne41i3hKflZIbXeZas7AA== 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: netsec: fix error handling in netsec_register_mdio() If phy_device_register() fails, phy_device_free() need be called to put refcount, so memory of phy device and device name can be freed in callback function. If get_phy_device() fails, mdiobus_unregister() need be called, or it will cause warning in mdiobus_free() and kobject is leaked. The Linux kernel CVE team has assigned CVE-2022-50624 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 533dd11a12f698c571a12271b20f235792d3e148 and fixed in 4.19.264 with commit 728884b22d83148a330b23f9472f1e118b589211 Issue introduced in 4.16 with commit 533dd11a12f698c571a12271b20f235792d3e148 and fixed in 5.4.223 with commit fda2d07234a21be4d71ebfe97a45f499726902d6 Issue introduced in 4.16 with commit 533dd11a12f698c571a12271b20f235792d3e148 and fixed in 5.10.153 with commit 62f0a08e82a6312efd7df7f595c0b11d4ffde610 Issue introduced in 4.16 with commit 533dd11a12f698c571a12271b20f235792d3e148 and fixed in 5.15.77 with commit 1e0bee973ef6fc3c1e3acb014515eaea37c8fa17 Issue introduced in 4.16 with commit 533dd11a12f698c571a12271b20f235792d3e148 and fixed in 6.0.7 with commit 846e677daf51220d7975c61a20e440a88473951e Issue introduced in 4.16 with commit 533dd11a12f698c571a12271b20f235792d3e148 and fixed in 6.1 with commit 94423589689124e8cd145b38a1034be7f25835b2 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-50624 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/socionext/netsec.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/728884b22d83148a330b23f9472f1e118b589211 https://git.kernel.org/stable/c/fda2d07234a21be4d71ebfe97a45f499726902d6 https://git.kernel.org/stable/c/62f0a08e82a6312efd7df7f595c0b11d4ffde610 https://git.kernel.org/stable/c/1e0bee973ef6fc3c1e3acb014515eaea37c8fa17 https://git.kernel.org/stable/c/846e677daf51220d7975c61a20e440a88473951e https://git.kernel.org/stable/c/94423589689124e8cd145b38a1034be7f25835b2