Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B73943E0093 for ; Tue, 6 Oct 2026 10:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282433; cv=none; b=cU2XPcpVk29xyoFz8hTLJlY+UcTyNBoUXrVzdFyXOkAJ6oP/H8C4HH5EYAvKKv722UYrB+cH+m+valD92GgF6noL1Q9ogPdCXDwV1P9zPi9MwXtDK43d6HMMAx6uAYqVSmYW6w40lV+v1uAQkhYBHSNLsLK+IgG//WNE8s1LAs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282433; c=relaxed/simple; bh=6t7W561ADO0L/4i1PSJV/00aHAHqKiE8/T2Zbb2bKcw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S9gkW0R/dehxza1KtNRMfSQBg77U5llWIL8DdHtcUTubxTNSR5sU0jYUboOjHVVsGmYm6hl9/ZyGHRwzEMbcNvRxq4C7HgP9mHwuW4oQNaP/rFwQIRqgCKDbPxAFciPkIug+3e9nUCpZU2A9coIF42F4hbHOiQpAXaTgAGbfMRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R7lQtMz9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="R7lQtMz9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ACCE1F000FF; Tue, 6 Oct 2026 10:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282432; bh=0mU95/U9Xa5j8F5xXEhxUgMsIs/319imTxhuJTjlCos=; h=From:To:Cc:Subject:Date:Reply-To; b=R7lQtMz9wbhLHvJ+FqHxTpfiZHys+j/W/kWSs6/BfjrlONeqJoqXpHggvxCdW3vOa pke6kexG5S8GJFoheLzDgV9ydKtP8nq6oZyoG9Zr6N+fhqBCuUwl8G2VY4na8Uab8X asuLOtgfSzxgDv8rf5DSmXrfU32SoQ+m1HyYv3cc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98307: wifi: ath11k: cleanup arsta in ath11k_mac_peer_cleanup_all() Date: Tue, 6 Oct 2026 10:46:48 +0200 Message-ID: <2026100610-CVE-2026-98307-dcc3@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3827; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TmcsNSS1w0YWBx9/prXGs/uU9iP4jKFgyYBzLTFdarM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtor9zpx0YJrQ/HN7+GJn+HR87VXLYVyZdVeYm+2kH cvxDQZXO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiebYMC85ln7ueOaWbZcsd NxX+O2sMDM/xZjPMr/0/tbhywqLPT6KuGOcfPvAv8Y65FgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: ath11k: cleanup arsta in ath11k_mac_peer_cleanup_all() When mac80211 removes a sta, it calls .sta_state() which in turn calls ath11k_mac_station_remove(). In that function we clean up both peers & arsta related resources. But when the firmware crashes, ath11k calls ieee80211_restart_hw(), which assumes that all driver related resources are cleaned up beforehand. This cleanup is supposedly done by ath11k_mac_peer_cleanup_all() but does not in fact free arsta->rx_stats / tx_stats. Extract the arsta cleanup from ath11k_mac_station_remove() into a new ath11k_mac_station_cleanup() and call it from both there and ath11k_mac_peer_cleanup_all(). This should handle kmemleaks reports like: unreferenced object 0xffffff801ae66400 (size 1024): comm "hostapd", pid 1306, jiffies 4295011565 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc d61c08ec): kmemleak_alloc+0x3c/0x50 __kmalloc_cache_noprof+0x2b0/0x3e0 ath11k_mac_op_sta_state+0x1dc/0xb10 drv_sta_state+0xac/0x6f8 sta_info_insert_rcu+0x314/0x5e0 sta_info_insert+0x14/0x38 ieee80211_add_station+0x10c/0x1a0 nl80211_new_station+0x3e8/0x680 genl_family_rcv_msg_doit+0xc0/0x120 genl_rcv_msg+0x1b4/0x258 netlink_rcv_skb+0x4c/0x108 genl_rcv+0x38/0x60 netlink_unicast+0x190/0x278 netlink_sendmsg+0x15c/0x370 ____sys_sendmsg+0x120/0x290 ___sys_sendmsg+0x70/0xa0 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.9.0.1-01977-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2026-98307 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 6.12.112 with commit c4108dce0838ec7d38d782f76f9c007cfe2fff45 Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 6.18.54 with commit 57bc3cd46458eafa1c38e3044a61b7399cde7642 Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 7.2.8 with commit be1d5e95ec499ed5ee9704aa27dd1407ccf0d0ac Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 7.3-rc4 with commit 820b8cff81c796ba20573e04722ab62500713f97 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-2026-98307 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/ath/ath11k/mac.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/c4108dce0838ec7d38d782f76f9c007cfe2fff45 https://git.kernel.org/stable/c/57bc3cd46458eafa1c38e3044a61b7399cde7642 https://git.kernel.org/stable/c/be1d5e95ec499ed5ee9704aa27dd1407ccf0d0ac https://git.kernel.org/stable/c/820b8cff81c796ba20573e04722ab62500713f97