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 5E0792D12F7 for ; Thu, 3 Jul 2025 08:36:11 +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=1751531771; cv=none; b=C2HAWkltzXrJHnYr+b2kayoMZLQ6tKLacNes5x+yp+spo1KIGX7CFxz4UcKByNzcjx6SLhMAHg8h9rUyWyR+AIcOHWqmIcC6Z++uZP/FWMp2/Jn/MTy0MyEi5WFdOhC8SwY3Z+ZEE42Ku/0XI28NG+j/Ir6kb/gUPpAau71K9fs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531771; c=relaxed/simple; bh=o8k/ORSx+SNPCHxmukjyK+527zO3SFVKI43RJEmyRCI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KoJRhLe1yOWQ2hhs3dbhFnMGuw1uFwII3c7355VJ6/c7UToOrUfbcyuwVtESmyMgTy2nuy8hPW4/JyESSb1aGBAfolJZdlsIP340uO4dDBPEtQJ0sHA4+Q8/ZRe8CaZwzZlXnRfj/KuwHzw5PMWLkTaYE1vnRhx4sMqsJEjfDH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YnTU3o7c; 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="YnTU3o7c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A0FBC4CEE3; Thu, 3 Jul 2025 08:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531770; bh=o8k/ORSx+SNPCHxmukjyK+527zO3SFVKI43RJEmyRCI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YnTU3o7cbJGpUzJOwSv6uN28VaLlbsNHG97xHZaVmWBvW/M+ugxBAAvamjCUQZ3hc 5pLYAUnEdQoxQGTd3vcIOx3ryJA8+62/HywZmW61P3xHJe5lCfdA8EMYIsLvJL7+3p /4d2N9PsKFHxQCLbxXCqXvrzqaubp/EJTg4zRF7c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38116: wifi: ath12k: fix uaf in ath12k_core_init() Date: Thu, 3 Jul 2025 10:35:33 +0200 Message-ID: <2025070325-CVE-2025-38116-1d80@gregkh> X-Mailer: git-send-email 2.50.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=2787; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XGqbyE68D+XtP+o8byPvWB9FgJ/pV/QvfkImF6IYxIY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDucsfF7Oy36SzsJRlNlyxp67UrCTR1/XlYtrUnQ2z 9qPYu86YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJfyxkWTLp6XmiDUcv2CV87 Ax5yNpuE1iw+xjA/98zve3oOf24fluphEJSOYMm/81UdAA== 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 uaf in ath12k_core_init() When the execution of ath12k_core_hw_group_assign() or ath12k_core_hw_group_create() fails, the registered notifier chain is not unregistered properly. Its memory is freed after rmmod, which may trigger to a use-after-free (UAF) issue if there is a subsequent access to this notifier chain. Fixes the issue by calling ath12k_core_panic_notifier_unregister() in failure cases. Call trace: notifier_chain_register+0x4c/0x1f0 (P) atomic_notifier_chain_register+0x38/0x68 ath12k_core_init+0x50/0x4e8 [ath12k] ath12k_pci_probe+0x5f8/0xc28 [ath12k] pci_device_probe+0xbc/0x1a8 really_probe+0xc8/0x3a0 __driver_probe_device+0x84/0x1b0 driver_probe_device+0x44/0x130 __driver_attach+0xcc/0x208 bus_for_each_dev+0x84/0x100 driver_attach+0x2c/0x40 bus_add_driver+0x130/0x260 driver_register+0x70/0x138 __pci_register_driver+0x68/0x80 ath12k_pci_init+0x30/0x68 [ath12k] ath12k_init+0x28/0x78 [ath12k] Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 The Linux kernel CVE team has assigned CVE-2025-38116 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 6f245ea0ec6c29b90c8fa4fdf6e178c646125d7e and fixed in 6.15.3 with commit 65e1b3404c211dcfaea02698539cdcd26647130f Issue introduced in 6.14 with commit 6f245ea0ec6c29b90c8fa4fdf6e178c646125d7e and fixed in 6.16-rc2 with commit f3fe49dbddd73f0155a8935af47cb63693069dbe 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-38116 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/65e1b3404c211dcfaea02698539cdcd26647130f https://git.kernel.org/stable/c/f3fe49dbddd73f0155a8935af47cb63693069dbe