From mboxrd@z Thu Jan 1 00:00:00 1970 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 0C4C3217673 for ; Wed, 26 Feb 2025 02:14:49 +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=1740536089; cv=none; b=NNKxjId7gyA3nxbFkWXbps7m8yhmlE5rD9Jx1L8wBAtf6bnzko25MX8VwB/Q+iu98HH/UBlNzllb9U8Tj4EUTekt8h0SlWqxRCtvV5vu6ozjFUwiNFqKUfgJeJN1dE4uWxtkIQkqcGkwT4bkWTLGpi75MtK1Z+XFcxBg8BKxw0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536089; c=relaxed/simple; bh=jEpQNRs2k1X3OR2zWaIVllWNygGnh2/uEmhtObe455g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=APfXlcde5pxBpfMPXnrqr+qqdf0Mrl7joNiJy6tfEPslL6Oj3jpAwjzO7cpwdCosgd4BiS0BMtuVhJ6oWXhwX+WwkUp/PCS6CwyyEFrOsf6USFjPYV+O8zFIUZUAswYY38sOop0PiMnWKE1ayqGGYo4Nh9/noFpMsLFHo6Dy1Rw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=akRPFeW+; 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="akRPFeW+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6046C4CEDD; Wed, 26 Feb 2025 02:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536088; bh=jEpQNRs2k1X3OR2zWaIVllWNygGnh2/uEmhtObe455g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=akRPFeW+huqJdPaQ1zX0xsc5Xw58CZrJZqgsGjShPzM0soflRhqHFW1JvZmOrxYBl kPqjmevdMZG9KCZp9M4lESYwhGzRne8N5SDaHNscAEpcPyzL5+n/AS3fq0EPs/BiiE vER7M8Eo+EQj2XNdVCS38IPTJ5jHC2vs/o34Bh7Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49479: mt76: fix tx status related use-after-free race on station removal Date: Wed, 26 Feb 2025 03:12:33 +0100 Message-ID: <2025022604-CVE-2022-49479-520e@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=2424; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jEpQNRs2k1X3OR2zWaIVllWNygGnh2/uEmhtObe455g=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv9UOhqkJCf13P31b+ICjeQdJ81Ws6gbKn+Mntz2R 3reqveNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRD3cYFqxS5Jt7XkbiB1vL 4toMkZr9t06uSmKYzfaFI9EtycGstvpnq2zF+hzRNTuOAgA= 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: fix tx status related use-after-free race on station removal There is a small race window where ongoing tx activity can lead to a skb getting added to the status tracking idr after that idr has already been cleaned up, which will keep the wcid linked in the status poll list. Fix this by only adding status skbs if the wcid pointer is still assigned in dev->wcid, which gets cleared early by mt76_sta_pre_rcu_remove The Linux kernel CVE team has assigned CVE-2022-49479 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 and fixed in 5.17.14 with commit ef7f9f894cfd0b2e471206409a529af4a26ddd55 Issue introduced in 5.16 with commit bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 and fixed in 5.18.3 with commit ddd426d72aca4054045a9bd3b80a4ce1d398f11f Issue introduced in 5.16 with commit bd1e3e7b693c17a04e7d2bd9119daa482b7c7720 and fixed in 5.19 with commit fcfe1b5e162bf473c1d47760962cec8523c00466 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-49479 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/mac80211.c drivers/net/wireless/mediatek/mt76/tx.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/ef7f9f894cfd0b2e471206409a529af4a26ddd55 https://git.kernel.org/stable/c/ddd426d72aca4054045a9bd3b80a4ce1d398f11f https://git.kernel.org/stable/c/fcfe1b5e162bf473c1d47760962cec8523c00466