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 A132F2F85B for ; Tue, 9 Dec 2025 01:32:11 +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=1765243931; cv=none; b=U9zIloAuvkdOD5G/Wyo10dzsTe5iG74bS6aFKop6KVEIAIgF67klMlVa0MCNs4P2Zn1b+XjVeKzOeMeu0ufeqsmrhkdQLhn8zg53ZRgi4SW01WBxU5YijNqd/0desfQsBsaatWsEl4QWBS88Jrpg55YxnsV5cPLKMP2hfLeepO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243931; c=relaxed/simple; bh=3XdMgvEwOKENibQXTjCd1qj459p+hbnswwuv92JHUsY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Oc/kmA+BhRbhhbWyqSpTU4pvNdI7AaFry+ROzhZ6NVszfnnRZqsukd01ubeUckQk7wuWBABBTR24qBBqSnNKIy69cIQ/zsKkrp3SeopsRl/Z+khuBLZMLKQhX/vEUvAzf7iGwvtVZ1OAYvERkgiPHolyHN7oXaK3lPXiMcM8bzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZY+9BYLi; 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="ZY+9BYLi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8958C4CEF1; Tue, 9 Dec 2025 01:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243931; bh=3XdMgvEwOKENibQXTjCd1qj459p+hbnswwuv92JHUsY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ZY+9BYLiLnBwL26EJbVwTpIEkENis6w7tAeNMt9Sm99HOmczu2NDBp81LtzMCs+uv qx3ek6U+vnoebXpUJIcfYIa+BoAfKe1cdfdJN5FObEXOzNuyVm4WKNI4Lh7hKTel7Z R6Ro/HErUJow9KEVEoNsBzUUfDQkAj8FJBAtoAGc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50663: net: stmmac: fix possible memory leak in stmmac_dvr_probe() Date: Tue, 9 Dec 2025 10:30:48 +0900 Message-ID: <2025120943-CVE-2022-50663-5606@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=2442; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7UQNRZvedGlegrb4MQfVXVJTqHrCVr9HcIr2X/1TlX0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1Yc/6Kce21W9q+T08Ulzl8j0hrAx7my4/5dHk/nGj snHlx536YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJnGllmB9UE8nxw46v6uli 2RNHis5H1629/IthnumvqrVJvSx8s9n/FD/cphJyfvHGCQA= 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: stmmac: fix possible memory leak in stmmac_dvr_probe() The bitmap_free() should be called to free priv->af_xdp_zc_qps when create_singlethread_workqueue() fails, otherwise there will be a memory leak, so we add the err path error_wq_init to fix it. The Linux kernel CVE team has assigned CVE-2022-50663 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit bba2556efad66e7eaa56fece13f7708caa1187f8 and fixed in 5.15.86 with commit 96e50897029f65222ef76cfe9bc802321fcea33b Issue introduced in 5.13 with commit bba2556efad66e7eaa56fece13f7708caa1187f8 and fixed in 6.0.16 with commit b59253e32c203a20bce15dca80890b7d268bacd7 Issue introduced in 5.13 with commit bba2556efad66e7eaa56fece13f7708caa1187f8 and fixed in 6.1.2 with commit 446757787baf99b7db15cb347783c45a37bfe21f Issue introduced in 5.13 with commit bba2556efad66e7eaa56fece13f7708caa1187f8 and fixed in 6.2 with commit a137f3f27f9290933fe7e40e6dc8a445781c31a2 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-50663 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/stmicro/stmmac/stmmac_main.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/96e50897029f65222ef76cfe9bc802321fcea33b https://git.kernel.org/stable/c/b59253e32c203a20bce15dca80890b7d268bacd7 https://git.kernel.org/stable/c/446757787baf99b7db15cb347783c45a37bfe21f https://git.kernel.org/stable/c/a137f3f27f9290933fe7e40e6dc8a445781c31a2