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 9845D1C8FBA for ; Wed, 18 Jun 2025 11:15:48 +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=1750245348; cv=none; b=S6HofmrqkEfAqEF9oqPxilwc2eI8CO0ZRz9vr/YISLukdlVoT7dasCFNcJWwgT+6F9I1WvEg1iywUWLTzKFqQn2k4dZezmr5mWXEZtshwub/rLqaHK7PADWsZC23vOpRAnvjf9LJz/zecl/BEft4gl1A/2BpRuSoH2/1R9yiOoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245348; c=relaxed/simple; bh=rOqFz9/fQCttBEXXRACQV+00Lbb0XuoMAIg5FpI/mCE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YUzlhMNbRO2BAxZ6KI0lPC+MoTVQycF9CDIIdkMzt1kkfag4aT2MO5gLUyssyj8J7bTajyWx7/5i65GD+fYyU+A9ZxDLboDmw+XVrTg2kfCoZk7R8CY2m20xP2zF2D83Q6pxuf8Pz6z3KFR7/PVuPDoLEelnN9J2Y9v1wQ5+6bI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=obCtyVch; 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="obCtyVch" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A024DC4CEF0; Wed, 18 Jun 2025 11:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245348; bh=rOqFz9/fQCttBEXXRACQV+00Lbb0XuoMAIg5FpI/mCE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=obCtyVch79dWrRxokln22j4LuPfaf6vLiaca/6tyuORpms9G95jSvOMbHJq5nhT38 v+/vD7UVCUdxYf/nAUrynpVMetUdFzS1i1bSmcipNA5VWz71zHmVhRKqiNnSqooLwq uAI8Dl3wyndlqNCBXnsj3QHgFyhV+G3Rm7CxDWMQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50172: mt76: mt76x02u: fix possible memory leak in __mt76x02u_mcu_send_msg Date: Wed, 18 Jun 2025 13:03:57 +0200 Message-ID: <2025061829-CVE-2022-50172-0d81@gregkh> X-Mailer: git-send-email 2.49.0 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=2562; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tVvuf9n3bCRfgLDud74s7tnaS7G1MKLi43qUZMBCLTc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBczqPFeZ80H4lKMfKENU4P/LkXk2GaQZTVq0Qv8uyx 7XN3/VARywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkjg/D/BS7mfVTbm1RyduT ZN64MuabiL7GWoYFi9geqgRk7zisvHb3w/6GfaLRH8tmAwA= 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: mt76: mt76x02u: fix possible memory leak in __mt76x02u_mcu_send_msg Free the skb if mt76u_bulk_msg fails in __mt76x02u_mcu_send_msg routine. The Linux kernel CVE team has assigned CVE-2022-50172 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 4c89ff2c74e39b60f1f6e650721f6f92f007ea5b and fixed in 5.10.137 with commit 3ad958bc488e3ecb0207d31621c00efb86f17482 Issue introduced in 4.20 with commit 4c89ff2c74e39b60f1f6e650721f6f92f007ea5b and fixed in 5.15.61 with commit f1609c4f4a21777e081b36596224802b85052ad9 Issue introduced in 4.20 with commit 4c89ff2c74e39b60f1f6e650721f6f92f007ea5b and fixed in 5.18.18 with commit da1ab462b96c5d47a0755aec957bae3d685538c5 Issue introduced in 4.20 with commit 4c89ff2c74e39b60f1f6e650721f6f92f007ea5b and fixed in 5.19.2 with commit 2f53ba46d8c97aca681adbe5098e1f84580c446d Issue introduced in 4.20 with commit 4c89ff2c74e39b60f1f6e650721f6f92f007ea5b and fixed in 6.0 with commit cffd93411575afd987788e2ec3cb8eaff70f0215 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-50172 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/wireless/mediatek/mt76/mt76x02_usb_mcu.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/3ad958bc488e3ecb0207d31621c00efb86f17482 https://git.kernel.org/stable/c/f1609c4f4a21777e081b36596224802b85052ad9 https://git.kernel.org/stable/c/da1ab462b96c5d47a0755aec957bae3d685538c5 https://git.kernel.org/stable/c/2f53ba46d8c97aca681adbe5098e1f84580c446d https://git.kernel.org/stable/c/cffd93411575afd987788e2ec3cb8eaff70f0215