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 EB4491A4E98 for ; Wed, 26 Feb 2025 01:59:42 +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=1740535183; cv=none; b=O1Mv3AYVoH5oYyQtOgmCXh3dZ/BUMUxEaFue4Ich+mPIy15vWRmYnF0ZE4uLCSHczf6rpv4P4INTP58Gt5kA6OWLOo6+TUEgUox6JA5XLaFst0xvk6UNElCJJbQeJJt5YSbdhn59OKWC45uJ7cH4x0zEBmjsJqOdtZlkiHpCSSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535183; c=relaxed/simple; bh=uyhgejJL1D/JJJ77Y/lkdCvqix4CDj1TSQ0pLzAGQoc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SabvCcIDGvL0xrpQfXK32ma8BkM2pSkxxHJBoaoeW8GVugOOSfyWT00KlD1rvhCw2vjqEfaCkYPKmL7ViUswv1MqHboKIqM6r53tqq2WRd2BXICsBa4bL/MuDD/FGjrcRZqS2trj8UgZXmMtRDdbXtdg92bRn4UKzsKCAX4sFwc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=prNc2vml; 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="prNc2vml" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C203CC4CEDD; Wed, 26 Feb 2025 01:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535182; bh=uyhgejJL1D/JJJ77Y/lkdCvqix4CDj1TSQ0pLzAGQoc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=prNc2vmlIJkH0Vf1InJvo1LuoAU3nhJgb5Zn9XfexKYnUwSZQHNplR1keaD93616h GaAaCJej08rL7rWBunw4i5Kq1p9kheRkH1LzPF2iIvXwnrAEqK+8kcy+RuPoZVXXf4 Bx97XDTq6QkppFg4adKR3XHR/FGkBCUH1Mygs2yU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49225: mt76: mt7921s: fix a possible memory leak in mt7921_load_patch Date: Wed, 26 Feb 2025 02:57:10 +0100 Message-ID: <2025022622-CVE-2022-49225-4daa@gregkh> X-Mailer: git-send-email 2.48.1 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=1856; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uyhgejJL1D/JJJ77Y/lkdCvqix4CDj1TSQ0pLzAGQoc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SvyW61go33hWu/6Hco/Tg2klvMu1RONz2w5+fSFyb MnN+KjrHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRJD6GBSs4z0tndhutkEr+ 3dZf/2r1T/P3Igzzcy5M1LrMdl2wQ0JO9DSft0GOk+tqAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: mt76: mt7921s: fix a possible memory leak in mt7921_load_patch Always release fw data at the end of mt7921_load_patch routine. The Linux kernel CVE team has assigned CVE-2022-49225 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 78b217580c50994ae22dde4ecaaf147de0f355f6 and fixed in 5.17.2 with commit b301043384c5c2447357952be9a536c2026d8ad0 Issue introduced in 5.17 with commit 78b217580c50994ae22dde4ecaaf147de0f355f6 and fixed in 5.18 with commit 11005b18f453aa192d035d410c11d07edcba5a45 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-49225 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/mt7921/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/b301043384c5c2447357952be9a536c2026d8ad0 https://git.kernel.org/stable/c/11005b18f453aa192d035d410c11d07edcba5a45