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 114262FFDD5 for ; Tue, 19 Aug 2025 17:21:37 +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=1755624098; cv=none; b=V0caIlhixGSY3ec6T84YRWVIjXmhAvNOj/AuLaeFeWcwEvJ4PaRJRywUJCNeAziS5P8xGn6ftUlBMpPkdWlFy0l+7JME5roIpyhR1FL/BQGYEFYHmLvWqWXye4hD17hS2Ol6AEDTZ+4/WX7jaRCXxmTXctKq5QyudLNKmqE1T4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624098; c=relaxed/simple; bh=Ev6ipQEas/Tn8mZns6HryStZ8reA3uJioVIxOeG9oWw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sB2DmPkGcCpPnbv0+vJmjyEhoH2YdRDfwcgs7eMbv/MQL0MDOsftixhqRDvrvbkQbhi7GuJPmkvtaSlM64o4ONX5PJk13kRWp62/keyEcFP1hFub0r9M7ZW/ky36ZxnC4cVjVpDQyVWC9t/xLlr2BSTuK3Brfk0HwWybFaeaN+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G8p6NEju; 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="G8p6NEju" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7AE8C4CEF1; Tue, 19 Aug 2025 17:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624097; bh=Ev6ipQEas/Tn8mZns6HryStZ8reA3uJioVIxOeG9oWw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G8p6NEjusX6N4I0ffAaTiFVSHRN4AR/DXsNkQjBOfS9BC4YHRICM6MODlj8BSR165 fH2z7/1QvKGlXujlTuignvtsvFAxsjjV/uq8kw2p8c5S6XuYeMhch2NWA+BJ4mXpiO +q3Bsa/lc4Lm572rmLNkm70/EqAsRVICpTtAoAHo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38601: wifi: ath11k: clear initialized flag for deinit-ed srng lists Date: Tue, 19 Aug 2025 19:18:47 +0200 Message-ID: <2025081920-CVE-2025-38601-1ab2@gregkh> X-Mailer: git-send-email 2.50.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=5307; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sLnYBwm5QnLKK2/LHpkRRO5uOxWOjAxo5c7m5jcyRSE=; b=kA0DAAIRMUfUDdst+ykByyZiAGiksdyjXpleeYc269j2u867zvg9nJWUCrXZyPlk2n3AsfkNF ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmiksdwACgkQMUfUDdst+ym8AgCeN3jp aXsTkMsLECLdNwkxqJsv9esAoJ2qxRgeCWBj1SfaZUk/CCQRWwro 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: clear initialized flag for deinit-ed srng lists In a number of cases we see kernel panics on resume due to ath11k kernel page fault, which happens under the following circumstances: 1) First ath11k_hal_dump_srng_stats() call Last interrupt received for each group: ath11k_pci 0000:01:00.0: group_id 0 22511ms before ath11k_pci 0000:01:00.0: group_id 1 14440788ms before [..] ath11k_pci 0000:01:00.0: failed to receive control response completion, polling.. ath11k_pci 0000:01:00.0: Service connect timeout ath11k_pci 0000:01:00.0: failed to connect to HTT: -110 ath11k_pci 0000:01:00.0: failed to start core: -110 ath11k_pci 0000:01:00.0: firmware crashed: MHI_CB_EE_RDDM ath11k_pci 0000:01:00.0: already resetting count 2 ath11k_pci 0000:01:00.0: failed to wait wlan mode request (mode 4): -110 ath11k_pci 0000:01:00.0: qmi failed to send wlan mode off: -110 ath11k_pci 0000:01:00.0: failed to reconfigure driver on crash recovery [..] 2) At this point reconfiguration fails (we have 2 resets) and ath11k_core_reconfigure_on_crash() calls ath11k_hal_srng_deinit() which destroys srng lists. However, it does not reset per-list ->initialized flag. 3) Second ath11k_hal_dump_srng_stats() call sees stale ->initialized flag and attempts to dump srng stats: Last interrupt received for each group: ath11k_pci 0000:01:00.0: group_id 0 66785ms before ath11k_pci 0000:01:00.0: group_id 1 14485062ms before ath11k_pci 0000:01:00.0: group_id 2 14485062ms before ath11k_pci 0000:01:00.0: group_id 3 14485062ms before ath11k_pci 0000:01:00.0: group_id 4 14780845ms before ath11k_pci 0000:01:00.0: group_id 5 14780845ms before ath11k_pci 0000:01:00.0: group_id 6 14485062ms before ath11k_pci 0000:01:00.0: group_id 7 66814ms before ath11k_pci 0000:01:00.0: group_id 8 68997ms before ath11k_pci 0000:01:00.0: group_id 9 67588ms before ath11k_pci 0000:01:00.0: group_id 10 69511ms before BUG: unable to handle page fault for address: ffffa007404eb010 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 100000067 P4D 100000067 PUD 10022d067 PMD 100b01067 PTE 0 Oops: 0000 [#1] PREEMPT SMP NOPTI RIP: 0010:ath11k_hal_dump_srng_stats+0x2b4/0x3b0 [ath11k] Call Trace: ? __die_body+0xae/0xb0 ? page_fault_oops+0x381/0x3e0 ? exc_page_fault+0x69/0xa0 ? asm_exc_page_fault+0x22/0x30 ? ath11k_hal_dump_srng_stats+0x2b4/0x3b0 [ath11k (HASH:6cea 4)] ath11k_qmi_driver_event_work+0xbd/0x1050 [ath11k (HASH:6cea 4)] worker_thread+0x389/0x930 kthread+0x149/0x170 Clear per-list ->initialized flag in ath11k_hal_srng_deinit(). The Linux kernel CVE team has assigned CVE-2025-38601 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 5118935b1bc28d0bce9427e584e11e905e68ee9a and fixed in 6.1.148 with commit 916ac18d526a26f6072866b1a97622cf1351ef1c Issue introduced in 5.7 with commit 5118935b1bc28d0bce9427e584e11e905e68ee9a and fixed in 6.6.102 with commit 5bf201c55fdf303e79005038648dfa1e8af48f54 Issue introduced in 5.7 with commit 5118935b1bc28d0bce9427e584e11e905e68ee9a and fixed in 6.12.42 with commit 72a48be1f53942793f3bc68a37fad1f38b53b082 Issue introduced in 5.7 with commit 5118935b1bc28d0bce9427e584e11e905e68ee9a and fixed in 6.15.10 with commit 0ebb5fe494501c19f31270008b26ab95201af6fd Issue introduced in 5.7 with commit 5118935b1bc28d0bce9427e584e11e905e68ee9a and fixed in 6.16.1 with commit 16872194c80f2724472fc207991712895ac8a230 Issue introduced in 5.7 with commit 5118935b1bc28d0bce9427e584e11e905e68ee9a and fixed in 6.17-rc1 with commit a5b46aa7cf5f05c213316a018e49a8e086efd98e 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-2025-38601 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/hal.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/916ac18d526a26f6072866b1a97622cf1351ef1c https://git.kernel.org/stable/c/5bf201c55fdf303e79005038648dfa1e8af48f54 https://git.kernel.org/stable/c/72a48be1f53942793f3bc68a37fad1f38b53b082 https://git.kernel.org/stable/c/0ebb5fe494501c19f31270008b26ab95201af6fd https://git.kernel.org/stable/c/16872194c80f2724472fc207991712895ac8a230 https://git.kernel.org/stable/c/a5b46aa7cf5f05c213316a018e49a8e086efd98e