wifi: ath12k: fix possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps()
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 |
|
|
6.5.136.6.36.7In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: fix possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps()
reg_cap.phy_id is extracted from WMI event and could be an unexpected value in case some errors happen. As a result out-of-bound write may occur to soc->hal_reg_cap. Fix it by validating reg_cap.phy_id before using it.
This is found during code review.
Compile tested only.
From the CVE record · Linux
The Linux kernel's ath12k Wi-Fi driver does not validate a PHY ID extracted from a WMI event before using it to write to soc->hal_reg_cap. An unexpected value could cause an out-of-bounds write; the input does not establish an attack path, authentication requirement, or user interaction requirement.
Engineers running Linux kernels with the ath12k Wi-Fi driver should check whether their kernel includes the fix; affected versions are not specified.