wifi: ath12k: Fix a NULL pointer dereference in ath12k_mac_op_hw_scan()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: Fix a NULL pointer dereference in ath12k_mac_op_hw_scan()
In ath12k_mac_op_hw_scan(), the return value of kzalloc() is directly used in memcpy(), which may lead to a NULL pointer dereference on failure of kzalloc().
Fix this bug by adding a check of arg.extraie.ptr.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
From the CVE record · Linux
The Linux kernel’s ath12k hardware scan function can use a failed memory allocation as a pointer, causing a NULL pointer dereference. This can occur if kzalloc() fails during a scan. The input does not specify an attack route, authentication requirement, or user interaction.
Engineers running Linux kernels with the ath12k Wi-Fi driver should check their deployments; affected versions are not specified.