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 C849A31A81C for ; Wed, 24 Dec 2025 10:57: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=1766573825; cv=none; b=BS1mRWly1lgecssErvGCCiKeUPDTlvegCA90PAB+Wwv2bQeD6po3tNuZDPrLa5iBBlSnDKwiuwGNCMr8HKqxgvHbZQ6FWGzhYsDTi+d13TdgADzShEDgq0ymCiMlhQXusEgWY+mA6i96WlPAPSNcJb14EnVgXNyqqLQtaNl/w0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573825; c=relaxed/simple; bh=SOBJyx7Az/4QMuBvLuiM0/+8CQTHLFCvesQ1FLoFHGk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hrxUax10e0kz1MSOTR/v0pKDAVTdqz5khvy87HKLD/vMEZlO5l0G4FnSVlaQ1dACCukKoyKG8ceqyaHE2BFsEO8KqVHAgBjf8jYAArraEZ9KOBJ1KCRZAY/1nzCGlKMmxk50pRV+o3UHll0qKrOwTKp+SNpkY4vm3yAEnSLufB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KBelIbYa; 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="KBelIbYa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13FA2C4CEFB; Wed, 24 Dec 2025 10:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573825; bh=SOBJyx7Az/4QMuBvLuiM0/+8CQTHLFCvesQ1FLoFHGk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=KBelIbYaymVwxtuPbLNFcXT1MADFSuU12vCUjOlcmA/EJiZV0D2SZhxLNShwTPTNa okL9XJ+mh/lEMyjC5+wO4JfouvIw4hA/jzNQHy2hOGzcJaRlsaF6FaUiBX55M0oNRU sLitO3LuLmW66h06TxzEXOpzBZWX4lG3pl9QN/Lc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50711: net: ethernet: mtk_eth_soc: fix possible memory leak in mtk_probe() Date: Wed, 24 Dec 2025 11:56:28 +0100 Message-ID: <2025122421-CVE-2022-50711-30c0@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=1944; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AMqLg7RLJoNSG0ur0eSznR7qEiAlzHd893A2Mcci/ps=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex65ymOw7kzdB4bntbpZ8IcEvs1pZPb0z42r8HtuFn BbL+z2tI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyqZVhnl3ovfMtDcaR78+U 5SZvjz6y+N1Wa4YFF85k/Z8yKaB+PW945M0TyYcXLd7wAQA= 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: ethernet: mtk_eth_soc: fix possible memory leak in mtk_probe() If mtk_wed_add_hw() has been called, mtk_wed_exit() needs be called in error path or removing module to free the memory allocated in mtk_wed_add_hw(). The Linux kernel CVE team has assigned CVE-2022-50711 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 804775dfc2885e93a0a4b35db1914c2cc25172b5 and fixed in 6.0.6 with commit 96bde7c4f5683d8c1c809ddb781ef3fdec9b7215 Issue introduced in 5.19 with commit 804775dfc2885e93a0a4b35db1914c2cc25172b5 and fixed in 6.1 with commit b3d0d98179d62f9d55635a600679c4fa362baf8d 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-50711 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/mediatek/mtk_eth_soc.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/96bde7c4f5683d8c1c809ddb781ef3fdec9b7215 https://git.kernel.org/stable/c/b3d0d98179d62f9d55635a600679c4fa362baf8d