UBUNTU-CVE-2026-90398: High severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: wifi: ath11k: fix stride mismatch in macphycapsparse() Currently, in ath11kwmitlvmacphycapsparse(), kcalloc() sizes the macphycaps buffer as totphyid len, where len is clamped to min(firmwarelen, sizeof(struct wmimacphycapabilities)). The subsequent memcpy() destination advances by sizeof(full struct) per slot via C pointer arithmetic, not by the clamped len. When firmware sends short TLVs, the second and later slots are written past the end of the allocation. The reader in ath11kpullmacphycapsvcreadyext() also indexes the buffer with full-struct pointer arithmetic, so the allocation must match that stride. Fix by using kzallocobjs(), which derives the element size from the pointer type, making allocation size and pointer stride provably consistent regardless of what len the firmware provides. Compile tested only.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel ath11k code, replace the kcalloc() allocation in ath11k_wmi_tlv_mac_phy_caps_parse() with kzalloc_objs(), so the mac_phy_caps buffer derives element size from the pointer type and matches the full-struct pointer stride used by ath11k_pull_mac_phy_cap_svc_ready_ext().