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 DD4F616F265 for ; Fri, 12 Jul 2024 12:34:20 +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=1720787660; cv=none; b=q/ozXZSIZWj+qNYBepciFU5Yt/IBPbS2mdtzl67QRuoRMVSLxXvEThr7CRTfwI4gh8B2ru4Ox1EeTZBVyQCRLX1BHOZwvWcB5skb4O6gSCwxTfhzO1oKTRUcIdLE+wgYm7qJQtcEknNNnb5Gzs+oGZU1/mt0U43P60EA7cd6ghg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787660; c=relaxed/simple; bh=hG/usMaLvIIs09hDQ2jcNyvwAtaEtCelPi64OXUM7JM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IbKFs4oHFbo05+puqD8qXDxK21RxnvYRKcJhZ50kP90Yt35zWN5krVoRGJ4IZi5p/yPBEOwoKzSL6q5fIy/tZGaDu14E11syxDC8lcO8xmhfWjVXKlTKhJA41rfu+8mfYi4CCINsHoWMLngGorkrLKLS1kbud2umOovyQbEh/N4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V0+DN8Du; 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="V0+DN8Du" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11AC1C32782; Fri, 12 Jul 2024 12:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787660; bh=hG/usMaLvIIs09hDQ2jcNyvwAtaEtCelPi64OXUM7JM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V0+DN8DuzlNMZH94Nh8P0D2Z00SjFek0DWGBevEHnu7pdbQGsy8W1MRUarci2a4AR jjyO615GnGSreHYQD+qWMwzaEOHbgF14+uKPa2UBaeZRNe8MeYbUfy8Gg9aNQQWcQN 6NlPHULDntTg3o/YFnUDibvF3kQmewgYvq/ih3o0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40977: wifi: mt76: mt7921s: fix potential hung tasks during chip recovery Date: Fri, 12 Jul 2024 14:32:53 +0200 Message-ID: <2024071230-CVE-2024-40977-07c8@gregkh> X-Mailer: git-send-email 2.45.2 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=2397; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hG/usMaLvIIs09hDQ2jcNyvwAtaEtCelPi64OXUM7JM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTleLubW6ZGfS0Ya3Q9FkTfu8/0bg8uHzKsV8h/2quX Lkvfrx7dkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMpGw7w3zH2i8cdkqzT/z/ 0revNuKw1j6X7B6G+eFmPWIpl49/kHy4fXFsxsKvDxffcAYA 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: wifi: mt76: mt7921s: fix potential hung tasks during chip recovery During chip recovery (e.g. chip reset), there is a possible situation that kernel worker reset_work is holding the lock and waiting for kernel thread stat_worker to be parked, while stat_worker is waiting for the release of the same lock. It causes a deadlock resulting in the dumping of hung tasks messages and possible rebooting of the device. This patch prevents the execution of stat_worker during the chip recovery. The Linux kernel CVE team has assigned CVE-2024-40977 to this issue. Affected and fixed versions =========================== Fixed in 6.1.96 with commit 0b81faa05b0b Fixed in 6.6.36 with commit 85edd783f453 Fixed in 6.9.7 with commit e974dd4c22a2 Fixed in 6.10-rc1 with commit ecf0b2b8a37c 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-2024-40977 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/mac.c drivers/net/wireless/mediatek/mt76/mt7921/pci_mac.c drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.c drivers/net/wireless/mediatek/mt76/sdio.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/0b81faa05b0b9feb3ae2d69be1d21f0d126ecb08 https://git.kernel.org/stable/c/85edd783f4539a994d66c4c014d5858f490b7a02 https://git.kernel.org/stable/c/e974dd4c22a23ec3ce579fb6d31a674ac0435da9 https://git.kernel.org/stable/c/ecf0b2b8a37c8464186620bef37812a117ff6366