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 DA2B1289371 for ; Thu, 10 Jul 2025 07:43:06 +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=1752133386; cv=none; b=UnkrsAGy+6op2abX72TIzaARhDb9HrbDKc+8SOHatcocHVa57QaUuboWHC7CcqQz16bFc3NqXr3xY1my95R0suMOtq17/8VuGSVAlbwN+KsIILcjomYpNOYnnNOk4Z7Z033j/SSJCaFFHdrUFNNS52pHXAmUUeVPBLRc1FRkyN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133386; c=relaxed/simple; bh=6ObakR5DnB8Fkd0ly5jD08QKg/FKf2+YMt25Csdwn3A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NYg/h4RZR7Qjd2qxnXmGzmKyOX82zeO+C+UPgt5lLQH+i67GNCduIgv1Yj9EuwobgL0+L4tklKSkjnN5nN7Qf+Q0ExABMes6jdJjpCVAnmSy8L4yq+U3jgkxxeKQ036qc5FCvmPX5p7W3ezEn3nHR3zR3+E4/J4axcjKKtlwGeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hdm8yT9N; 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="hdm8yT9N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C16BC4CEF5; Thu, 10 Jul 2025 07:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133386; bh=6ObakR5DnB8Fkd0ly5jD08QKg/FKf2+YMt25Csdwn3A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hdm8yT9NpU3P+wGipfAt8oB88+WgPti0YmbN0E4UYbQN0j8a//+0PIQaEKstBHgB8 LHC+hY8q6TLZb3PxP+bjE7XI64/4XJ+A2CYqFTZIvAJ3sYl/Wfm5d8vXCjhZ5HBpTY dHoNB4jm79l/9VjArtkwaCuyQ/G6O77uBVYoZ8WA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38290: wifi: ath12k: fix node corruption in ar->arvifs list Date: Thu, 10 Jul 2025 09:42:31 +0200 Message-ID: <2025071011-CVE-2025-38290-36c3@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=3583; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WzJS1MbMx0+8nGg2Uo3Y2I7Ss53Co8GrFnozpsTUYu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eZdfTHnMtu5MzSlGBTmuJq/fFpLXBRoWPz0oXrI3r nW7Y2VtRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykwoVhwbTwyZrLeM4JvpZb UC7gtvomc6iYCcNcEePiiw9vJtdN1TfanfFbalbcuV4jAA== 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: ath12k: fix node corruption in ar->arvifs list In current WLAN recovery code flow, ath12k_core_halt() only reinitializes the "arvifs" list head. This will cause the list node immediately following the list head to become an invalid list node. Because the prev of that node still points to the list head "arvifs", but the next of the list head "arvifs" no longer points to that list node. When a WLAN recovery occurs during the execution of a vif removal, and it happens before the spin_lock_bh(&ar->data_lock) in ath12k_mac_vdev_delete(), list_del() will detect the previously mentioned situation, thereby triggering a kernel panic. The fix is to remove and reinitialize all vif list nodes from the list head "arvifs" during WLAN halt. The reinitialization is to make the list nodes valid, ensuring that the list_del() in ath12k_mac_vdev_delete() can execute normally. Call trace: __list_del_entry_valid_or_report+0xd4/0x100 (P) ath12k_mac_remove_link_interface.isra.0+0xf8/0x2e4 [ath12k] ath12k_scan_vdev_clean_work+0x40/0x164 [ath12k] cfg80211_wiphy_work+0xfc/0x100 process_one_work+0x164/0x2d0 worker_thread+0x254/0x380 kthread+0xfc/0x100 ret_from_fork+0x10/0x20 The change is mostly copied from the ath11k patch: https://lore.kernel.org/all/20250320053145.3445187-1-quic_stonez@quicinc.com/ Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2025-38290 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.6.94 with commit be049199dec9189602bc06e2c70eda3aa0f2ea6e Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.12.34 with commit 6285516170f9e2f04b9dbf1e5100e0d7cbac22b4 Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.15.3 with commit 6bfe7ae9bbd9734751b853e2d2e1c13e8b46fd2d Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.16-rc1 with commit 823435bd23108d6f8be89ea2d025c0e2e3769c51 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-38290 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/ath12k/core.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/be049199dec9189602bc06e2c70eda3aa0f2ea6e https://git.kernel.org/stable/c/6285516170f9e2f04b9dbf1e5100e0d7cbac22b4 https://git.kernel.org/stable/c/6bfe7ae9bbd9734751b853e2d2e1c13e8b46fd2d https://git.kernel.org/stable/c/823435bd23108d6f8be89ea2d025c0e2e3769c51