Re: [PATCH] wifi: ath11k: validate regulatory capability phy_id
From: Rameshkumar Sundaram
Date: Mon Jul 13 2026 - 05:30:57 EST
On 7/4/2026 6:40 AM, Pengpeng Hou wrote:
ath11k_wmi_tlv_ext_hal_reg_caps() copies firmware regulatoryReviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@xxxxxxxxxxxxxxxx>
capability records into soc->hal_reg_cap[] using reg_cap.phy_id as
the destination index. The loop count is bounded by num_phy, but the
phy_id embedded in each record is not checked against the fixed
MAX_RADIOS-sized destination array.
Reject firmware records whose phy_id does not fit soc->hal_reg_cap[]
before copying the parsed capability.
Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>