wifi: ath6kl: clamp assoc request/response lengths before subtracting IE offsets
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bdcd81707973cf8aa9305337166f8ee842a050d4 · < e1330d719c047c4d8190a16be034b29fc601a815| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ath6kl Wi-Fi component fails to check that association request and response lengths meet minimum offsets before subtracting them. When a shorter length is processed, it can wrap and cause adjacent slab memory to be copied to user space through nl80211. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels with the ath6kl Wi-Fi component should check their exposure; affected versions are not specified.