CVE-2026-138852
JSON

8.4high

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

Severity
8.4high CVSS:3.1 by Linux
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 062ade23991e556a14bbb27c1cf873c34dbd9d28 before ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9, from 062ade23991e556a14bbb27c1cf873c34dbd9d28 before 3ba642864653dbcece500b510e330abec42fc128, from 062ade23991e556a14bbb27c1cf873c34dbd9d28 before 86f2537877d6029487811bc3e0cd9e086a196000, 6.16
Not affected: before 6.16, from 6.18.63 up to 6.18.*, from 7.3.4 up to 7.3.*, from 7.4-rc1 up to *
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-138852 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-138852 changed 2026-12-01Public domain