Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138852

published high CVSS 3.1 · 8.4

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

Published
30 Nov 2026, 13:25:35 UTC
Updated
01 Dec 2026, 05:40:19 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux062ade23991e556a14bbb27c1cf873c34dbd9d28 to < ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9 · 062ade23991e556a14bbb27c1cf873c34dbd9d28 to < 3ba642864653dbcece500b510e330abec42fc128 · 062ade23991e556a14bbb27c1cf873c34dbd9d28 to < 86f2537877d6029487811bc3e0cd9e086a196000 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated 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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.4 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 062ade23991e556a14bbb27c1cf873c34dbd9d28 to < ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9 (affected · git)062ade23991e556a14bbb27c1cf873c34dbd9d28 to < 3ba642864653dbcece500b510e330abec42fc128 (affected · git)062ade23991e556a14bbb27c1cf873c34dbd9d28 to < 86f2537877d6029487811bc3e0cd9e086a196000 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.16 (affected)0 to < 6.16 (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
de6bdbbb818c75b39e8948e1f8aea6e0e8cfd136b5f7c095ac3f0e19a6f176f2
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected