{"id":"CVE-2026-90399","revision":"8e8d8e54d7944adb9251f34c332518bf","records":[{"revision":"8e8d8e54d7944adb9251f34c332518bf","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-90399","aliases":[],"title":"wifi: ath12k: fix stride mismatch in mac_phy_caps_parse()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath12k: fix stride mismatch in mac_phy_caps_parse()\n\nCurrently, in ath12k_wmi_mac_phy_caps_parse(), kzalloc() sizes the\nmac_phy_caps buffer as tot_phy_id * len, where len is clamped to\nmin(firmware_len, sizeof(struct ath12k_wmi_mac_phy_caps_params)). The\nsubsequent memcpy() destination advances by sizeof(full struct) per slot\nvia C pointer arithmetic, not by the clamped len. When firmware sends\nshort TLVs, the second and later slots are written past the end of the\nallocation.\n\nThe reader in ath12k_pull_mac_phy_cap_svc_ready_ext() also indexes the\nbuffer with full-struct pointer arithmetic, so the allocation must match\nthat stride.\n\nFix by using kzalloc_objs(), which derives the element size from the\npointer type, making allocation size and pointer stride provably\nconsistent regardless of what len the firmware provides.\n\nTested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3","state":0,"publishedAt":"2026-09-17T16:09:30.273+00:00","modifiedAt":"2026-10-21T12:51:30.27+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/net/wireless/ath/ath12k/wmi.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"d889913205cf7ebda905b1e62c5867ed4e39f6c2\",\n                            \"lessThan\": \"79c6f4f7d16eea1bcb8bc5c8fd6ec04a01b0614f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d889913205cf7ebda905b1e62c5867ed4e39f6c2\",\n                            \"lessThan\": \"d3355e0fdbbf531ca8b82a6a3feb80a1b7306a8b\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d889913205cf7ebda905b1e62c5867ed4e39f6c2\",\n                            \"lessThan\": \"b9a5d12cbdeb860306f8d47c92caee0ea6ee0e0a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d889913205cf7ebda905b1e62c5867ed4e39f6c2\",\n                            \"lessThan\": \"26f8f87f0a556e7984366c64cebc16d49e15d22f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d889913205cf7ebda905b1e62c5867ed4e39f6c2\",\n                            \"lessThan\": \"4c6eb712a91fa079be6f9f1419c96e0ad2227081\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/net/wireless/ath/ath12k/wmi.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.3\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.3\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.160\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.110\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.52\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.6\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/79c6f4f7d16eea1bcb8bc5c8fd6ec04a01b0614f","https://git.kernel.org/stable/c/d3355e0fdbbf531ca8b82a6a3feb80a1b7306a8b","https://git.kernel.org/stable/c/b9a5d12cbdeb860306f8d47c92caee0ea6ee0e0a","https://git.kernel.org/stable/c/26f8f87f0a556e7984366c64cebc16d49e15d22f","https://git.kernel.org/stable/c/4c6eb712a91fa079be6f9f1419c96e0ad2227081"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-90399","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-90399","identifiers":["CVE-2026-90399"]},"retained":false,"historicalAffected":[]}],"coverage":[]}