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 7ED1435AAA1 for ; Thu, 11 Sep 2025 16:52:59 +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=1757609579; cv=none; b=FXbOyONuObhyP9cDggpCJ2I3bsaCFhGwLSj6+zAA340lchZAfBeC+/I2yqXQOFSIUSCNIcXMBq0GKNhGaQTq7Q1xPkiCTx7bOl3YGA5QvNMVL+IjB+0/gFoGePCBl9VBw42/1kiNkyIjoNeB8Xkndo8iP+DTYs45wydetfdNbwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609579; c=relaxed/simple; bh=24qQvie7s8qCG3nkSN3Dyiws6aVxqBahS2SGnhGh/rQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jn+vkOoplKS71Yf5/f6UccakgmFo0Mk1CpV7mB4tsIesHEQAE8nif71TLYII9mucvBuA3b+K3OjrCC7M/TFR6BFwkIGgpNzxDifZCo091y2hC7KaDkHG+Kfp2JsM2d84hrlOfiU3YDyC41zpwHL7pF2SSFjfBqU0CyczE76+s4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UJjMafVy; 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="UJjMafVy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E64D6C4CEF5; Thu, 11 Sep 2025 16:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609579; bh=24qQvie7s8qCG3nkSN3Dyiws6aVxqBahS2SGnhGh/rQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UJjMafVyNpH/8z+t8EcqbQdF/3gE+PV3jngO0DHQZxYZAjx5gxZAsGWZqP6QEgFSs uKwYHR+CfNyKh3NZP2rDcdC0bqfKoaA2D0ttBaqFQWD2pgf14FTAtx2cbFqxnwaARo EKe0Tm/BM1g0EzKqOn0xe2KtxZlTnoKzzuzbTpF8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39746: wifi: ath10k: shutdown driver when hardware is unreliable Date: Thu, 11 Sep 2025 18:52:47 +0200 Message-ID: <2025091140-CVE-2025-39746-7ba5@gregkh> X-Mailer: git-send-email 2.51.0 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=3179; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7h0MwQNXpHX3aooOqm6oB0e5KB8PDpzv7p2dZTI0Itw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/kVcu2W8evIGJdEHf0tlG37rWGX8P9fYPzuzSW1iz +EVRczpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRB2UMC2amtZy5azUv+plt uEnGuhsTWLJFljDMryn05XT4/vV/8dZbClyCng6vvOoSAQ== 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: ath10k: shutdown driver when hardware is unreliable In rare cases, ath10k may lose connection with the PCIe bus due to some unknown reasons, which could further lead to system crashes during resuming due to watchdog timeout: ath10k_pci 0000:01:00.0: wmi command 20486 timeout, restarting hardware ath10k_pci 0000:01:00.0: already restarting ath10k_pci 0000:01:00.0: failed to stop WMI vdev 0: -11 ath10k_pci 0000:01:00.0: failed to stop vdev 0: -11 ieee80211 phy0: PM: **** DPM device timeout **** Call Trace: panic+0x125/0x315 dpm_watchdog_set+0x54/0x54 dpm_watchdog_handler+0x57/0x57 call_timer_fn+0x31/0x13c At this point, all WMI commands will timeout and attempt to restart device. So set a threshold for consecutive restart failures. If the threshold is exceeded, consider the hardware is unreliable and all ath10k operations should be skipped to avoid system crash. fail_cont_count and pending_recovery are atomic variables, and do not involve complex conditional logic. Therefore, even if recovery check and reconfig complete are executed concurrently, the recovery mechanism will not be broken. Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00288-QCARMSWPZ-1 The Linux kernel CVE team has assigned CVE-2025-39746 to this issue. Affected and fixed versions =========================== Fixed in 6.12.43 with commit 201c9b4485edc618863a60f97a2d88bddd139467 Fixed in 6.15.11 with commit e36991bddf8be63e79659f654cdb1722db4e8132 Fixed in 6.16.2 with commit 84ca5632b8d05d1c2e25604d1d63434b2fb61c85 Fixed in 6.17-rc1 with commit c256a94d1b1b15109740306f7f2a7c2173e12072 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-39746 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/ath10k/core.c drivers/net/wireless/ath/ath10k/core.h drivers/net/wireless/ath/ath10k/mac.c drivers/net/wireless/ath/ath10k/wmi.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/201c9b4485edc618863a60f97a2d88bddd139467 https://git.kernel.org/stable/c/e36991bddf8be63e79659f654cdb1722db4e8132 https://git.kernel.org/stable/c/84ca5632b8d05d1c2e25604d1d63434b2fb61c85 https://git.kernel.org/stable/c/c256a94d1b1b15109740306f7f2a7c2173e12072