Linux
wifi: ath6kl: clamp assoc request/response lengths before subtracting IE offsets
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < 225587bdbf4b0eb5265a71ee4dc183561a1857fc
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < d337213a889705a69735079606d0b4c672b17605
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < e11d5ae96d5e52cb48fa27c6ad352d766d0322fb
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < 6deb4d7a0c3d91821b2a8d5239e3d9933d9217d9
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < e3619bed5da125713b29ac881dc66f5e06606f88
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < e1330d719c047c4d8190a16be034b29fc601a815
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < 8eb73016fb3968cf2db3987a92764563a3af773a
- >= bdcd81707973cf8aa9305337166f8ee842a050d4, < 3bbd05723d15dd06f0560bcd94fbf9a91b5f5613
Fixed in 225587bdbf4b0eb5265a71ee4dc183561a1857fc, d337213a889705a69735079606d0b4c672b17605, e11d5ae96d5e52cb48fa27c6ad352d766d0322fb, 6deb4d7a0c3d91821b2a8d5239e3d9933d9217d9, e3619bed5da125713b29ac881dc66f5e06606f88, e1330d719c047c4d8190a16be034b29fc601a815, 8eb73016fb3968cf2db3987a92764563a3af773a, 3bbd05723d15dd06f0560bcd94fbf9a91b5f5613
- 3.2
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 225587bdbf4b0eb5265a71ee4dc183561a1857fc or d337213a889705a69735079606d0b4c672b17605 or e11d5ae96d5e52cb48fa27c6ad352d766d0322fb or 6deb4d7a0c3d91821b2a8d5239e3d9933d9217d9 or e3619bed5da125713b29ac881dc66f5e06606f88 or e1330d719c047c4d8190a16be034b29fc601a815 or 8eb73016fb3968cf2db3987a92764563a3af773a or 3bbd05723d15dd06f0560bcd94fbf9a91b5f5613 or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.