wifi: at76c50x-usb: avoid length underflow in at76_guess_freq()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1264b951463a00efebe1bb596499aaad620ec8af · < fb1b50ab699211e777dca5ccfb648788b6a6e519| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: at76c50x-usb: avoid length underflow in at76_guess_freq()
at76_guess_freq() checks only that the received frame is at least a bare 802.11 header (24 bytes) before subtracting the fixed management-body offset:
len -= el_off;
For both beacon and probe response frames, el_off is 36. If the frame is shorter than el_off, subtracting it causes the calculated IE length to wrap. The length is eventually passed to cfg80211_find_elem_match() as a very large unsigned value, so the element walk runs beyond the RX skb.
This path is reached from at76_rx_tasklet() while scanning. If the device delivers a truncated beacon or probe response, the oversized IE length causes an out-of-bounds read during scanning.
Skip the IE lookup if the frame does not reach the variable elements, before subtracting el_off.
From the CVE record · Linux
The Linux kernel's at76c50x-usb Wi-Fi driver can underflow a frame length when processing a truncated beacon or probe response. If the device delivers such a frame during scanning, the resulting oversized length causes an out-of-bounds read. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the at76c50x-usb driver should check their exposure; affected versions are not specified.