CVE-2026-89524: wifi: ath6kl: clamp assoc request/response lengths before subtracting IE offsets
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath6kl: clamp assoc request/response lengths before subtracting IE offsets
ath6kl_cfg80211_connect_event() subtracts fixed IE offsets from assoc_req_len (-= 4) and assoc_resp_len (-= 6), both u8, with no lower bound. The aggregate check recently added to ath6kl_wmi_connect_event_rx() bounds the declared lengths from above (their sum must fit the received event), but an assoc request/response shorter than its fixed offset still underflows here: the u8 wraps to ~250, and cfg80211_connect_result() / cfg80211_roamed() then treat that wrapped value as the IE length and copy that many bytes out of the small assoc_info buffer to user space via nl80211, disclosing adjacent slab memory.
Clamp both lengths to their offsets before subtracting.
Found by 0sec (https://0sec.ai) using automated source analysis; the missing lower bound is evident from source. Compile-tested.
The Linux kernel CVE team has assigned CVE-2026-89524 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.2 with commit bdcd81707973cf8aa9305337166f8ee842a050d4 and fixed in 6.12.109 with commit e3619bed5da125713b29ac881dc66f5e06606f88 Issue introduced in 3.2 with commit bdcd81707973cf8aa9305337166f8ee842a050d4 and fixed in 6.18.50 with commit e1330d719c047c4d8190a16be034b29fc601a815 Issue introduced in 3.2 with commit bdcd81707973cf8aa9305337166f8ee842a050d4 and fixed in 7.2.4 with commit 8eb73016fb3968cf2db3987a92764563a3af773a Issue introduced in 3.2 with commit bdcd81707973cf8aa9305337166f8ee842a050d4 and fixed in 7.3-rc1 with commit 3bbd05723d15dd06f0560bcd94fbf9a91b5f5613
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89524
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/ath/ath6kl/cfg80211.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/e3619bed5da125713b29ac881dc66f5e06606f88 https://git.kernel.org/stable/c/e1330d719c047c4d8190a16be034b29fc601a815 https://git.kernel.org/stable/c/8eb73016fb3968cf2db3987a92764563a3af773a https://git.kernel.org/stable/c/3bbd05723d15dd06f0560bcd94fbf9a91b5f5613