wifi: cfg80211: validate IEs in cfg80211_wext_siwgenie()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f21293549f60f88c74fcb9944737f11048896dc4 · < 01cc395cecfaa73134d39fb9a401d9605d8bb2c5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: validate IEs in cfg80211_wext_siwgenie()
The KASAN allocation trace shows that a malformed IE buffer is stored via SIOCSIWGENIE (cfg80211_wext_siwgenie()) without any validation. The crash trace shows that a subsequent SIOCSIWESSID triggers a connection attempt which calls cfg80211_sme_get_conn_ies() to process the stored IE buffer, causing:
- An out-of-bounds read in skip_ie() which reads ies[pos+1] (the length byte) past the end of the 1-byte buffer.
- An integer underflow in the memcpy size argument when offs returned by ieee80211_ie_split() exceeds ies_len, causing unsigned subtraction to wrap to SIZE_MAX and triggering a fortify panic.
Fix this by validating the IE buffer in cfg80211_wext_siwgenie() before storing it.
[drop unnecessary ie_len check, update commit message]
From the CVE record · Linux
The Linux kernel’s cfg80211 wireless component stores malformed information-element buffers through SIOCSIWGENIE without validating them. A subsequent SIOCSIWESSID connection attempt can trigger an out-of-bounds read and an integer underflow that causes a kernel panic. The described trigger uses local ioctl calls; authentication requirements are not specified.
Engineers running Linux kernels with cfg80211 should check whether their builds include the fix; affected versions are not specified.