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 723F71F63C8 for ; Fri, 27 Dec 2024 15:00:05 +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=1735311605; cv=none; b=uGbTefd1pSLtlc9ha3JCpEPSwlfpdp21JFk6wvG3G+3nCx6+4S1XBGzioo0RA1BxrMKVpuWYLK2hSt8SXD5kaoSnSopE/dQZLeMtKQmT07qj7RicrM8PHavFsHgPKgntYTgjLTrCgzYZbusvqeymgcsOBrvg+Koa5Po3B1KCujA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311605; c=relaxed/simple; bh=owwP2kTnxKaZso2RBfhk/9bNDtCm9/J6C/BPrCo7n8Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PG/wR0SPj89b+UTB8CG077SXyAnwnd4s9BB0fBUW4LhI+ChRubbwVsykhTEY2qfmlVRkZ+XDKLbPhuAnPyksdJaF/DFNlvsGEB9n7djBHvM77cDZ6ocsc2rtJxXVWkYK+4SG9h3B2O4DbNfxh/HcTagAi06QHVn3f23XEjbftro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kAUUrrIw; 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="kAUUrrIw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98840C4CED0; Fri, 27 Dec 2024 15:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311605; bh=owwP2kTnxKaZso2RBfhk/9bNDtCm9/J6C/BPrCo7n8Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kAUUrrIwlDxPU01DWAyZa1kvKojuxHsV9VtxbM4ItBIt1jp92Dgk9Rar3wU4ZPLrp UBURqL8boWU81Pvz51BC9jV074kmTu143wMuYtYZrPsu6aJTVDWAfcQEw3A75XhjuO W/vprlKg82aZSEQ/+Posjh0BPB2MFe59oH8riGIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56609: wifi: rtw88: use ieee80211_purge_tx_queue() to purge TX skb Date: Fri, 27 Dec 2024 15:51:16 +0100 Message-ID: <2024122706-CVE-2024-56609-7fe3@gregkh> X-Mailer: git-send-email 2.47.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=4291; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=owwP2kTnxKaZso2RBfhk/9bNDtCm9/J6C/BPrCo7n8Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5+26xlQjMTju49bfnVrdJyUvnyHkcURbuc5vkUhTHf qiFbf63jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjINS6GeXoCW6Jd3la+3FyW q+i0p/zs5hmWzxjmO0jtviLUNnXD94jY/c3PzsV9sVivBwA= 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: rtw88: use ieee80211_purge_tx_queue() to purge TX skb When removing kernel modules by: rmmod rtw88_8723cs rtw88_8703b rtw88_8723x rtw88_sdio rtw88_core Driver uses skb_queue_purge() to purge TX skb, but not report tx status causing "Have pending ack frames!" warning. Use ieee80211_purge_tx_queue() to correct this. Since ieee80211_purge_tx_queue() doesn't take locks, to prevent racing between TX work and purge TX queue, flush and destroy TX work in advance. wlan0: deauthenticating from aa:f5:fd:60:4c:a8 by local choice (Reason: 3=DEAUTH_LEAVING) ------------[ cut here ]------------ Have pending ack frames! WARNING: CPU: 3 PID: 9232 at net/mac80211/main.c:1691 ieee80211_free_ack_frame+0x5c/0x90 [mac80211] CPU: 3 PID: 9232 Comm: rmmod Tainted: G C 6.10.1-200.fc40.aarch64 #1 Hardware name: pine64 Pine64 PinePhone Braveheart (1.1)/Pine64 PinePhone Braveheart (1.1), BIOS 2024.01 01/01/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ieee80211_free_ack_frame+0x5c/0x90 [mac80211] lr : ieee80211_free_ack_frame+0x5c/0x90 [mac80211] sp : ffff80008c1b37b0 x29: ffff80008c1b37b0 x28: ffff000003be8000 x27: 0000000000000000 x26: 0000000000000000 x25: ffff000003dc14b8 x24: ffff80008c1b37d0 x23: ffff000000ff9f80 x22: 0000000000000000 x21: 000000007fffffff x20: ffff80007c7e93d8 x19: ffff00006e66f400 x18: 0000000000000000 x17: ffff7ffffd2b3000 x16: ffff800083fc0000 x15: 0000000000000000 x14: 0000000000000000 x13: 2173656d61726620 x12: 6b636120676e6964 x11: 0000000000000000 x10: 000000000000005d x9 : ffff8000802af2b0 x8 : ffff80008c1b3430 x7 : 0000000000000001 x6 : 0000000000000001 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000003be8000 Call trace: ieee80211_free_ack_frame+0x5c/0x90 [mac80211] idr_for_each+0x74/0x110 ieee80211_free_hw+0x44/0xe8 [mac80211] rtw_sdio_remove+0x9c/0xc0 [rtw88_sdio] sdio_bus_remove+0x44/0x180 device_remove+0x54/0x90 device_release_driver_internal+0x1d4/0x238 driver_detach+0x54/0xc0 bus_remove_driver+0x78/0x108 driver_unregister+0x38/0x78 sdio_unregister_driver+0x2c/0x40 rtw_8723cs_driver_exit+0x18/0x1000 [rtw88_8723cs] __do_sys_delete_module.isra.0+0x190/0x338 __arm64_sys_delete_module+0x1c/0x30 invoke_syscall+0x74/0x100 el0_svc_common.constprop.0+0x48/0xf0 do_el0_svc+0x24/0x38 el0_svc+0x3c/0x158 el0t_64_sync_handler+0x120/0x138 el0t_64_sync+0x194/0x198 ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2024-56609 to this issue. Affected and fixed versions =========================== Fixed in 6.12.5 with commit 9bca6528f20325d30c22236b23116f161d418f6d Fixed in 6.13-rc1 with commit 3e5e4a801aaf4283390cc34959c6c48f910ca5ea 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-56609 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/realtek/rtw88/sdio.c drivers/net/wireless/realtek/rtw88/usb.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/9bca6528f20325d30c22236b23116f161d418f6d https://git.kernel.org/stable/c/3e5e4a801aaf4283390cc34959c6c48f910ca5ea