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 DD68E1DA31F for ; Wed, 26 Feb 2025 01:58:35 +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=1740535115; cv=none; b=fpzElPZloj8fHv1u539VTknQ1sJtfu+SYLQL++Jl57E2CJ3qCqd4ABXtvHxLVwECj/kVccGuVbw+eQE4nV8krSsUZzgHYzRfWrKSuBOZGKdMph4oN3AB5o7+iPHmWWHyiBOvcxEhj0O79l9qbCmLw7o9lmMe3COx5Sn4719wk4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535115; c=relaxed/simple; bh=LJfkXOKg0Y0dxOwbTc/O9rlqxVL9p5byQ1yOFI87jtI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XNIVLIYJ4u4CEss0KMRLCr/chS12k39ZZs5ZfVuRZbb2Q+8I9od1WMOsDbox6dbNsCfBSusJmq97R2LOwK/RJeSD8JF7NKHDIvKnPEL1PwkL3WpfdEcduAye41j2br4jT0hg5cqzBHHcD+JJxGfFF7b+bsRPXDRwVH210Tu5GWg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vlgys6qY; 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="vlgys6qY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFC14C4CEDD; Wed, 26 Feb 2025 01:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535115; bh=LJfkXOKg0Y0dxOwbTc/O9rlqxVL9p5byQ1yOFI87jtI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vlgys6qYtk5eFmvmGbnpo0s+sAOnhBuaeQ4HAy67ctbtwhWWaX1k44vUA2kM4YNir 8ddljt4ec/bkJli1xxy9LRI67YTVEpYgmiYJ23nzNIW9QE7RgG0gqD1A4GPewewoQg +9usbgDmZUaovRjEAUijw9RBAhfbnEuq3t+ycBZ4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49131: ath11k: fix kernel panic during unload/load ath11k modules Date: Wed, 26 Feb 2025 02:55:36 +0100 Message-ID: <2025022605-CVE-2022-49131-584c@gregkh> X-Mailer: git-send-email 2.48.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=4080; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LJfkXOKg0Y0dxOwbTc/O9rlqxVL9p5byQ1yOFI87jtI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SmwfM1epa7PL5j88bvdvo+g614T+GSpNJj0XjvQof Pgu0J3bEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZkMQwVyYm+/8d55U7Fmny rJ+fr3W9sKjCgWHBknM3Vobs6TkTLl/B+kL4yBJbZ7GnAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ath11k: fix kernel panic during unload/load ath11k modules Call netif_napi_del() from ath11k_ahb_free_ext_irq() to fix the following kernel panic when unload/load ath11k modules for few iterations. [ 971.201365] Unable to handle kernel paging request at virtual address 6d97a208 [ 971.204227] pgd = 594c2919 [ 971.211478] [6d97a208] *pgd=00000000 [ 971.214120] Internal error: Oops: 5 [#1] PREEMPT SMP ARM [ 971.412024] CPU: 2 PID: 4435 Comm: insmod Not tainted 5.4.89 #0 [ 971.434256] Hardware name: Generic DT based system [ 971.440165] PC is at napi_by_id+0x10/0x40 [ 971.445019] LR is at netif_napi_add+0x160/0x1dc [ 971.743127] (napi_by_id) from [<807d89a0>] (netif_napi_add+0x160/0x1dc) [ 971.751295] (netif_napi_add) from [<7f1209ac>] (ath11k_ahb_config_irq+0xf8/0x414 [ath11k_ahb]) [ 971.759164] (ath11k_ahb_config_irq [ath11k_ahb]) from [<7f12135c>] (ath11k_ahb_probe+0x40c/0x51c [ath11k_ahb]) [ 971.768567] (ath11k_ahb_probe [ath11k_ahb]) from [<80666864>] (platform_drv_probe+0x48/0x94) [ 971.779670] (platform_drv_probe) from [<80664718>] (really_probe+0x1c8/0x450) [ 971.789389] (really_probe) from [<80664cc4>] (driver_probe_device+0x15c/0x1b8) [ 971.797547] (driver_probe_device) from [<80664f60>] (device_driver_attach+0x44/0x60) [ 971.805795] (device_driver_attach) from [<806650a0>] (__driver_attach+0x124/0x140) [ 971.814822] (__driver_attach) from [<80662adc>] (bus_for_each_dev+0x58/0xa4) [ 971.823328] (bus_for_each_dev) from [<80663a2c>] (bus_add_driver+0xf0/0x1e8) [ 971.831662] (bus_add_driver) from [<806658a4>] (driver_register+0xa8/0xf0) [ 971.839822] (driver_register) from [<8030269c>] (do_one_initcall+0x78/0x1ac) [ 971.847638] (do_one_initcall) from [<80392524>] (do_init_module+0x54/0x200) [ 971.855968] (do_init_module) from [<803945b0>] (load_module+0x1e30/0x1ffc) [ 971.864126] (load_module) from [<803948b0>] (sys_init_module+0x134/0x17c) [ 971.871852] (sys_init_module) from [<80301000>] (ret_fast_syscall+0x0/0x50) Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.6.0.1-00760-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2022-49131 to this issue. Affected and fixed versions =========================== Fixed in 5.10.111 with commit c6a815f5abdf324108799829dd19ea62fef4bf95 Fixed in 5.15.34 with commit c4b7653af62a9a5efe2856183d1f987c5429758b Fixed in 5.16.20 with commit 699e8c87e5c406af0f0606f40eeebd248c51b702 Fixed in 5.17.3 with commit 38e488db194dc16d2eb23c77c6a8c04ff583c40d Fixed in 5.18 with commit 22b59cb965f79ee1accf83172441c9ca0ecb632a 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-2022-49131 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/c6a815f5abdf324108799829dd19ea62fef4bf95 https://git.kernel.org/stable/c/c4b7653af62a9a5efe2856183d1f987c5429758b https://git.kernel.org/stable/c/699e8c87e5c406af0f0606f40eeebd248c51b702 https://git.kernel.org/stable/c/38e488db194dc16d2eb23c77c6a8c04ff583c40d https://git.kernel.org/stable/c/22b59cb965f79ee1accf83172441c9ca0ecb632a