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 378C72563F for ; Wed, 28 Feb 2024 08:16:57 +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=1709108217; cv=none; b=IW6HBSj25V9jWzc/Tkx8mEBSEaER6nYBIhiR3EjgnJykPJUH054WyIpsrf5jbb/+GwkfuyXKcWQJxoVO7WYVk3Wmvc/Wx0vIImlUR4VA4LeWo3KM1/npOIcU+17rs2KeHATCmBZQUFuvOiuVV4oqDO2uJwV+ATZgOy0cchJJU9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108217; c=relaxed/simple; bh=xSep0ux31YoY6/Apwl7Yc0QSz+ZUz1VP2hyrxglzi30=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tnosZHkNcrWifuB36EUbSkWoB9wHTtHBECZg0tQY0pKQMR/P8NM2WE9G4zsKytxNyg2kpZYczs0KA+mfSxVJm7oyPb9qTO+XJC761YoVAqtC689gl7+fIku/O/zTw/qadrdvOykUj6pv0Qmh4ai8jnz45Cfi1Wke+sVc500yKD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JZNMsoJc; 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="JZNMsoJc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD1BAC433F1; Wed, 28 Feb 2024 08:16:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108217; bh=xSep0ux31YoY6/Apwl7Yc0QSz+ZUz1VP2hyrxglzi30=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JZNMsoJc6U+g5N6+cKKEI+WvCoQ4w2WaX3Oh7I3lzbDs+E0kXsfshEcnSYK8TB3OK jfboM5v/2Z1B+k8oWKzUWLsq17uMKrlJ4+hrVOn7Hvc92H2wLjOO5NvpkrsIv7KvNs 8msi5XV3O2rtq9+NPCArHgtVH+QYevM4Q5hJOjgE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47021: mt76: mt7915: fix memleak when mt7915_unregister_device() Date: Wed, 28 Feb 2024 09:15:09 +0100 Message-ID: <2024022833-CVE-2021-47021-6cbb@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=1921; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6UT9hzZV1Xih4hg5KBpRVG8UCczIFrJObZs3ncTS6CQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3XmeaTLczP52arBhibrqg1yq8/XqpW+7U0Jut55d8m VcVc/5ERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkmJthrsxf5+nCwstTXUod Tj+v172cNWn3OYb53lX2n3nfetm0/D4c2f5nQT3PfgFbAA== 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: mt7915: fix memleak when mt7915_unregister_device() mt7915_tx_token_put() should get call before mt76_free_pending_txwi(). The Linux kernel CVE team has assigned CVE-2021-47021 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11.4 with commit 4e9e896f8193 and fixed in 5.11.21 with commit 81483309ce86 Issue introduced in 5.12 with commit f285dfb98562 and fixed in 5.12.4 with commit d754c80ae82a Issue introduced in 5.12 with commit f285dfb98562 and fixed in 5.13 with commit e9d32af478cf 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-47021 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/mt7915/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/81483309ce861a9fa7835322787f68a443fea364 https://git.kernel.org/stable/c/d754c80ae82a662e692a82faad71b8c218cb7f52 https://git.kernel.org/stable/c/e9d32af478cfc3744a45245c0b126738af4b3ac4