{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138852","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.898Z","datePublished":"2026-11-30T13:25:35.028Z","dateUpdated":"2026-12-01T05:40:19.456Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:19.456Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath12k: validate MAC/PHY capability count before saving\n\nFirmware supplies the hardware mode count and the PHY bitmap for each\nmode in the service-ready-ext event. ath12k_wmi_save_all_mac_phy_info()\nuses those bitmaps to populate svc_ext_info->mac_phy_info, but the\ndestination is a fixed array of ATH12K_MAX_MAC_PHY_CAP elements.\n\nIf the total number of advertised PHY entries exceeds that limit, the\nloop writes beyond mac_phy_info and corrupts adjacent memory.\n\nath12k_wmi_mac_phy_caps_parse() allocates the source array for\ntot_phy_id entries and rejects excess capability TLVs. However, if the\nevent contains fewer capability TLVs than advertised, the remaining\nallocated entries stay zeroed and are saved as invalid PHY information.\n\nAfter parsing the MAC/PHY capability TLVs, validate the destination\ncapacity and reject an incomplete capability list before saving any\nentries."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The malformed phy_id_map values and MAC_PHY_CAPABILITIES TLVs arrive in WMI_SERVICE_READY_EXT_EVENTID from the ath12k firmware over the CE2 WMI pipe (ath12k_htc_rx_completion_handler -> ath12k_wmi_op_rx -> ath12k_service_ready_ext_event -> ath12k_wmi_svc_rdy_ext_parse). This is the host-firmware PCIe/AHB channel; no 802.11 frame carries these fields.\nAC:L - tot_phy_id is the sum of fls(phy_id_map) over firmware HW_MODE_CAPABILITIES TLVs. ath12k_wmi_save_all_mac_phy_info() writes that many entries into mac_phy_info[ATH12K_MAX_MAC_PHY_CAP=8] with no bound check, so one mode with phy_id_map=BIT(31) deterministically writes 24 entries (672 bytes) out of bounds. No race or layout luck is involved.\nPR:N - ath12k_wmi_op_rx() dispatches WMI_SERVICE_READY_EXT_EVENTID with no capability, uid or state check. A malicious or compromised WCN7850/QCN9274 firmware that emits the event needs no Linux account.\nUI:N - The event is handled during ath12k_core_start() at probe and crash recovery, and also whenever firmware sends it, because ath12k_wmi_op_rx has no state gate. No victim ioctl, interface bring-up or other user action is needed.\nS:U - The overflow corrupts fields of the host kernel's struct ath12k_base that follow wmi_ab.svc_ext_info. The impact stays within the host kernel's authority; this is not a VM escape or an IOMMU/DMA-remapping bypass.\nC:H - The linear overwrite past mac_phy_info reaches the fw_ready waitqueue list pointers, dump_work, the htc state, and the dp, mem and hif.ops pointers. Corrupting those pointers with firmware-chosen values can redirect host kernel reads, which is a memory-corruption primitive that can be turned into information disclosure.\nI:H - Each out-of-bounds entry writes phy_id, supported_bands and four frequency dwords copied from firmware MAC_PHY_CAPABILITIES TLVs into the ath12k_base fields after the array, including the function pointer dump_work.func and the hif.ops table pointer. That is a controlled kernel write that can be used to hijack control flow.\nA:H - Overwriting the fw_ready completion, the htc state and the hif/dp pointers with firmware values, or with zeros for slots that have no TLV, oopses the host kernel the next time they are used. If the event has no MAC_PHY TLVs, mac_phy_caps stays NULL and ath12k_wmi_save_mac_phy_info() dereferences it immediately."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/wmi.c"],"versions":[{"version":"062ade23991e556a14bbb27c1cf873c34dbd9d28","lessThan":"ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9","status":"affected","versionType":"git"},{"version":"062ade23991e556a14bbb27c1cf873c34dbd9d28","lessThan":"3ba642864653dbcece500b510e330abec42fc128","status":"affected","versionType":"git"},{"version":"062ade23991e556a14bbb27c1cf873c34dbd9d28","lessThan":"86f2537877d6029487811bc3e0cd9e086a196000","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/wmi.c"],"versions":[{"version":"6.16","status":"affected"},{"version":"0","lessThan":"6.16","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9"},{"url":"https://git.kernel.org/stable/c/3ba642864653dbcece500b510e330abec42fc128"},{"url":"https://git.kernel.org/stable/c/86f2537877d6029487811bc3e0cd9e086a196000"}],"title":"wifi: ath12k: validate MAC/PHY capability count before saving","x_generator":{"engine":"bippy-1.2.0"}}}}