[PATCH ath-next] wifi: ath12k: validate TLV length in process_tpc_stats()
Rameshkumar Sundaram
rameshkumar.sundaram at oss.qualcomm.com
Sun Jul 26 22:11:27 PDT 2026
On 7/27/2026 4:32 AM, Jeff Johnson wrote:
> The outer skb->len guard only confirms the SKB is large enough
> to hold the full fixed_param struct, but the TLV's own WMI_TLV_LEN
> field is never checked. Firmware advertising a TLV length shorter
> than sizeof(*fixed_param) causes reads of pdev_id and event_count
> beyond the declared TLV payload.
>
> Add a check that the TLV length is at least sizeof(*fixed_param)
> before casting and dereferencing the pointer.
>
> Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
> Assisted-by: Claude:claude-sonnet-4-6
> Signed-off-by: Jeff Johnson <jeff.johnson at oss.qualcomm.com>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram at oss.qualcomm.com>
More information about the ath12k
mailing list