CVE-2022-49132 Information
Description
In the Linux kernel the following vulnerability has been resolved:
ath11k: pci: fix crash on suspend if board file is not found
Mario reported that the kernel was crashing on suspend if ath11k was not able to find a board file:
[ 473.693286] PM: Suspending system (s2idle)
[ 473.693291] printk: Suspending console(s) (use no_console_suspend to debug)
[ 474.407787] BUG: unable to handle page fault for address: 0000000000002070
[ 474.407791] PF: supervisor read access in kernel mode
[ 474.407794] PF: error_code(0x0000) - not-present page
[ 474.407798] PGD 0 P4D 0
[ 474.407801] Oops: 0000 [1] PREEMPT SMP NOPTI
[ 474.407805] CPU: 2 PID: 2350 Comm: kworker/u32:14 Tainted: G W 5.16.0 248
[…]
[ 474.407868] Call Trace:
[ 474.407870]
The issue here is that board file loading happens after ath11k_pci_probe() succesfully returns (ath11k initialisation happends asynchronously) and the suspend handler is still enabled of course failing as ath11k is not properly initialised. Fix this by checking ATH11K_FLAG_QMI_FAIL during both suspend and resume.
Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2
Reference
https://git.kernel.org/stable/c/aeed776c00e804a0f7896db39c7c661cea34ee1f https://git.kernel.org/stable/c/b4f4c56459a5c744f7f066b9fc2b54ea995030c5 https://git.kernel.org/stable/c/f3c5ef433da82d257337424b3647ce9dcb37d4b5 https://git.kernel.org/stable/c/fed4cef115ab21a18faf499b3fa9b9a4b544f941
Share on: