{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "062ade23991e556a14bbb27c1cf873c34dbd9d28"
            },
            {
              "fixed": "ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9"
            },
            {
              "fixed": "3ba642864653dbcece500b510e330abec42fc128"
            },
            {
              "fixed": "86f2537877d6029487811bc3e0cd9e086a196000"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.16.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138852.json"
  },
  "details": "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",
  "modified": "2026-12-01T06:45:59.765660686Z",
  "published": "2026-11-30T13:25:35.028Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3ba642864653dbcece500b510e330abec42fc128"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/86f2537877d6029487811bc3e0cd9e086a196000"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ada2a9bcb9c49bce7091a30a6bb4e4551fbdd0d9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138852.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138852"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "wifi: ath12k: validate MAC/PHY capability count before saving"
}