CVE-2026-138852 (GCVE-0-2026-138852)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:25 – Updated: 2026-12-01 05:40
VLAI
Title
wifi: ath12k: validate MAC/PHY capability count before saving
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 062ade23991e556a14bbb27c1cf873c34dbd9d28 , < ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9 (git)
Affected: 062ade23991e556a14bbb27c1cf873c34dbd9d28 , < 3ba642864653dbcece500b510e330abec42fc128 (git)
Affected: 062ade23991e556a14bbb27c1cf873c34dbd9d28 , < 86f2537877d6029487811bc3e0cd9e086a196000 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.16
Unaffected: 0 , < 6.16 (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/ath/ath12k/wmi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9",
              "status": "affected",
              "version": "062ade23991e556a14bbb27c1cf873c34dbd9d28",
              "versionType": "git"
            },
            {
              "lessThan": "3ba642864653dbcece500b510e330abec42fc128",
              "status": "affected",
              "version": "062ade23991e556a14bbb27c1cf873c34dbd9d28",
              "versionType": "git"
            },
            {
              "lessThan": "86f2537877d6029487811bc3e0cd9e086a196000",
              "status": "affected",
              "version": "062ade23991e556a14bbb27c1cf873c34dbd9d28",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/ath/ath12k/wmi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.16"
            },
            {
              "lessThan": "6.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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-\u003emac_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": {
            "baseScore": 8.4,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "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 -\u003e ath12k_wmi_op_rx -\u003e ath12k_service_ready_ext_event -\u003e 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\u0027s struct ath12k_base that follow wmi_ab.svc_ext_info. The impact stays within the host kernel\u0027s 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:40:19.456Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-138852",
    "datePublished": "2026-11-30T13:25:35.028Z",
    "dateReserved": "2026-11-30T13:22:15.898Z",
    "dateUpdated": "2026-12-01T05:40:19.456Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-138852",
      "date": "2026-12-04",
      "epss": "0.00191",
      "percentile": "0.09152"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/wireless/ath/ath12k/wmi.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9",
                    "status": "affected",
                    "version": "062ade23991e556a14bbb27c1cf873c34dbd9d28",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "3ba642864653dbcece500b510e330abec42fc128",
                    "status": "affected",
                    "version": "062ade23991e556a14bbb27c1cf873c34dbd9d28",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "86f2537877d6029487811bc3e0cd9e086a196000",
                    "status": "affected",
                    "version": "062ade23991e556a14bbb27c1cf873c34dbd9d28",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/wireless/ath/ath12k/wmi.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.16"
                  },
                  {
                    "lessThan": "6.16",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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-\u003emac_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."
          }
        ],
        "id": "CVE-2026-138852",
        "lastModified": "2026-12-01T06:17:28.880",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 8.4,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 2.5,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:17:41.117",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3ba642864653dbcece500b510e330abec42fc128"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/86f2537877d6029487811bc3e0cd9e086a196000"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:08:19+00:00",
      "cve": "CVE-2026-138852",
      "id": "CVE-2026-138852",
      "initial_release_date": "2026-11-30T13:25:35.028000+00:00",
      "product_status:known_affected": "187",
      "product_status:known_not_affected": "93",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: ath12k: out-of-bounds write via excessive PHY capability count",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-138852.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.