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 CA10C2563F for ; Wed, 28 Feb 2024 08:16:59 +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=1709108219; cv=none; b=uTmpPOEZ9ebngyDFZo1IpaGysvQTdhbLSCGSsVRGzmG3EHum8nBMiE2GcVM5QJbbA28Nt8GaiKSyyQ9t9Pv9nA7/ABcTEjH5kzT+v0kpnrisqW3Tz3dg7YojUPUERDjgkE+PACD6s0a1qkGeZ5HANO1BuNpVWdT+NSDrGL0GXdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108219; c=relaxed/simple; bh=TjOoVbZtd+Rr5fmQhJmVK5Yf0zRgatR7jSv3Pg0sWpE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f32sveEajSgsOBdgdyPTMpqWCxK5KAMPkCsSusn/lKmz7Rj6rgrqc1f5hcMwWBwMHKdUfQyJo/mBTuceFgIeuh03FG3P4BfVF9eBLt7X5K1oH01fRaU/stxubDdKRHwcix7vnau/uHIO3LPQb+Wok2piRjtSBkGYVevanH9x0jo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bVIwUxoz; 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="bVIwUxoz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D158C433F1; Wed, 28 Feb 2024 08:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108219; bh=TjOoVbZtd+Rr5fmQhJmVK5Yf0zRgatR7jSv3Pg0sWpE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bVIwUxozx0dSZxkqYMyP0Q39kY+GXKhtB4MkVtccvW6AkTHc6SmPfI5k9aZPX6jHK fRSfiJ2SnX8vCXsnLQXFBq26kTJe5yg7/ZCZP1ejgPOQ2U2uaG60+eW4h7qJCIOmrh ZhWZ7RxePSyWrJdSsBptEOaYuyKHQFAa76EztwIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47022: mt76: mt7615: fix memleak when mt7615_unregister_device() Date: Wed, 28 Feb 2024 09:15:10 +0100 Message-ID: <2024022833-CVE-2021-47022-402e@gregkh> X-Mailer: git-send-email 2.44.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=2101; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OcjsO8XbdgUOHBYcHSdFVLtCpCF9EBYfC1uGeYnuHSs=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3Xmf2u05c91du55nl4n2GYT6f/+Tskt9k0s1c56ux8 dqkCGmLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIkwnD/FBGW669zzZdu7sz /RerDceLTN9NMQwLdrx7d6zPV0KPc3JH2oW9wb7eU29aAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: mt76: mt7615: fix memleak when mt7615_unregister_device() mt7615_tx_token_put() should get call before mt76_free_pending_txwi(). The Linux kernel CVE team has assigned CVE-2021-47022 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.21 with commit aec571968140 and fixed in 5.10.37 with commit 4fa28c807da5 Issue introduced in 5.11.4 with commit 1aca6c30d4b6 and fixed in 5.11.21 with commit 107bcbb219ac Issue introduced in 5.12 with commit a6275e934605 and fixed in 5.12.4 with commit 6c5b2b0c6e5a Issue introduced in 5.12 with commit a6275e934605 and fixed in 5.13 with commit 8ab31da7b89f Please see https://www.kernel.org or 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-2021-47022 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/mt7615/pci_init.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/4fa28c807da54c1d720b3cc12e48eb9bea1e2c8f https://git.kernel.org/stable/c/107bcbb219ac84d885ac63b25246f8d33212bc47 https://git.kernel.org/stable/c/6c5b2b0c6e5a6ce2d8f9f85b8b72bfad60eaa506 https://git.kernel.org/stable/c/8ab31da7b89f71c4c2defcca989fab7b42f87d71