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 4C99F2E611B for ; Wed, 1 Oct 2025 11:58:28 +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=1759319908; cv=none; b=qeXRLgh389iCBkyxEszdTYDAbc7FqLgkP7t8MwSZr1aXDRovmhPNu9+x55QeDoHcgWwZhePvOuhin//qXgrqINRL39RWmTTKYo/sUHdByKECjBcZ+e4GZxEHxlSsTsNG+Z7G512wuMLIjPV9BC2edce/o5+hoAUU+aONIcRE14A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319908; c=relaxed/simple; bh=Bw5mNdYwEZbEbpgDE9kQvUUXr5GeTK+I4VRaRJTaR4M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oV1Z8MjgsQ7BACSEqzRF53pZaKNLtQWXI0TBminO2SzhOGI8RX2PLyNRivvSkDcHeEwIEETA5qttOEO60Hj14RowGV0zN8uZADZmn3Le/qcaYl8Xe3MjwuWjUDhhYWJbKesmw+fLh2ngPLVW44z+tWJzeIOZhYj9ENsaNEXx54U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LpXnv/Rn; 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="LpXnv/Rn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0477C4CEF4; Wed, 1 Oct 2025 11:58:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319908; bh=Bw5mNdYwEZbEbpgDE9kQvUUXr5GeTK+I4VRaRJTaR4M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LpXnv/RnTTFvNhx/2NUSJRXZbdv6By2A0iGCc2Vh19bSek49CbRlZESDzd5rI5pZ3 m7O3/xiW5KVpgtCnr7bDT8sDy2rje2BYazUWZ/dO153mhm0M+UA0qCSjMDaPBrBbmV YX+D5rTISAfmpRmp14TUS6IQYmAAMklhEjqc6yb4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53532: wifi: ath11k: fix deinitialization of firmware resources Date: Wed, 1 Oct 2025 13:46:24 +0200 Message-ID: <2025100137-CVE-2023-53532-1627@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=4494; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q57q4RnekNnZZwOjkiXqr1qnsnCKKZmJHXXZfLaAYHg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RRJvKWk+MDuk92zzpUDxm+kb9JcfVHl2su7LsQs3P /7rmh6i0xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT6d/NsGDhyiuLUoSXHL4b V98fUfX30+6n0xgZ5oqGXr/77azhJtvbOTN80o3FjvDHpAAA 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: fix deinitialization of firmware resources Currently, in ath11k_ahb_fw_resources_init(), iommu domain mapping is done only for the chipsets having fixed firmware memory. Also, for such chipsets, mapping is done only if it does not have TrustZone support. During deinitialization, only if TrustZone support is not there, iommu is unmapped back. However, for non fixed firmware memory chipsets, TrustZone support is not there and this makes the condition check to true and it tries to unmap the memory which was not mapped during initialization. This leads to the following trace - [ 83.198790] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 [ 83.259537] Modules linked in: ath11k_ahb ath11k qmi_helpers .. snip .. [ 83.280286] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 83.287228] pc : __iommu_unmap+0x30/0x140 [ 83.293907] lr : iommu_unmap+0x5c/0xa4 [ 83.298072] sp : ffff80000b3abad0 .. snip .. [ 83.369175] Call trace: [ 83.376282] __iommu_unmap+0x30/0x140 [ 83.378541] iommu_unmap+0x5c/0xa4 [ 83.382360] ath11k_ahb_fw_resource_deinit.part.12+0x2c/0xac [ath11k_ahb] [ 83.385666] ath11k_ahb_free_resources+0x140/0x17c [ath11k_ahb] [ 83.392521] ath11k_ahb_shutdown+0x34/0x40 [ath11k_ahb] [ 83.398248] platform_shutdown+0x20/0x2c [ 83.403455] device_shutdown+0x16c/0x1c4 [ 83.407621] kernel_restart_prepare+0x34/0x3c [ 83.411529] kernel_restart+0x14/0x74 [ 83.415781] __do_sys_reboot+0x1c4/0x22c [ 83.419427] __arm64_sys_reboot+0x1c/0x24 [ 83.423420] invoke_syscall+0x44/0xfc [ 83.427326] el0_svc_common.constprop.3+0xac/0xe8 [ 83.430974] do_el0_svc+0xa0/0xa8 [ 83.435659] el0_svc+0x1c/0x44 [ 83.438957] el0t_64_sync_handler+0x60/0x144 [ 83.441910] el0t_64_sync+0x15c/0x160 [ 83.446343] Code: aa0103f4 f9400001 f90027a1 d2800001 (f94006a0) [ 83.449903] ---[ end trace 0000000000000000 ]--- This can be reproduced by probing an AHB chipset which is not having a fixed memory region. During reboot (or rmmod) trace can be seen. Fix this issue by adding a condition check on firmware fixed memory hw_param as done in the counter initialization function. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2023-53532 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit f9eec4947add999e1251bf14365a48a655b786a4 and fixed in 6.1.28 with commit 0324300dce3412d4737b4ec5898d0188495a7caa Issue introduced in 5.19 with commit f9eec4947add999e1251bf14365a48a655b786a4 and fixed in 6.2.15 with commit 8faf862d81ab197757761e87d0a99fbb96ab2cf0 Issue introduced in 5.19 with commit f9eec4947add999e1251bf14365a48a655b786a4 and fixed in 6.3.2 with commit a1548363582a8066edd4986f839d785f13dda3aa Issue introduced in 5.19 with commit f9eec4947add999e1251bf14365a48a655b786a4 and fixed in 6.4 with commit 5a78ac33e3cb8822da64dd1af196e83664b332b0 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-2023-53532 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/ahb.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/0324300dce3412d4737b4ec5898d0188495a7caa https://git.kernel.org/stable/c/8faf862d81ab197757761e87d0a99fbb96ab2cf0 https://git.kernel.org/stable/c/a1548363582a8066edd4986f839d785f13dda3aa https://git.kernel.org/stable/c/5a78ac33e3cb8822da64dd1af196e83664b332b0