freenode

← CVE tracker

CVE-2026-138852

wifi: ath12k: validate MAC/PHY capability count before saving

Severity
high CVSS 8.4 (v3.1)
Affects
Linux
Published
30 November 2026 by Linux
First seen on our lists
30 November 2026
In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: validate MAC/PHY capability count before saving Firmware supplies the hardware mode count and the PHY bitmap for each mode in the service-ready-ext event. ath12k_wmi_save_all_mac_phy_info() uses those bitmaps to populate svc_ext_info->mac_phy_info, but the destination is a fixed array of ATH12K_MAX_MAC_PHY_CAP elements. If the total number of advertised PHY entries exceeds that limit, the loop writes beyond mac_phy_info and corrupts adjacent memory. ath12k_wmi_mac_phy_caps_parse() allocates the source array for tot_phy_id entries and rejects excess capability TLVs. However, if the event contains fewer capability TLVs than advertised, the remaining allocated entries stay zeroed and are saved as invalid PHY information. After parsing the MAC/PHY capability TLVs, validate the destination capacity and reject an incomplete capability list before saving any entries.

Our coverage

We have not written about this one. Know why it matters? Send a tip.

On the lists